diff options
| author | Jon A. Cruz <jon@joncruz.org> | 2011-07-19 07:19:23 +0000 |
|---|---|---|
| committer | Jon A. Cruz <jon@joncruz.org> | 2011-07-19 07:19:23 +0000 |
| commit | 0bf4c13f8cb4a90073210f2ace480701b854d370 (patch) | |
| tree | 94499a9de9d3009cb1576032b0138122222a22de /src/libnrtype | |
| parent | Extensions. Merging Alphabet soup fixes by Glyphobet. (diff) | |
| download | inkscape-0bf4c13f8cb4a90073210f2ace480701b854d370.tar.gz inkscape-0bf4c13f8cb4a90073210f2ace480701b854d370.zip | |
Minor code safety tweak to null out stale pointer.
(bzr r10474)
Diffstat (limited to 'src/libnrtype')
| -rw-r--r-- | src/libnrtype/FontInstance.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libnrtype/FontInstance.cpp b/src/libnrtype/FontInstance.cpp index 4288acd79..641adc3ac 100644 --- a/src/libnrtype/FontInstance.cpp +++ b/src/libnrtype/FontInstance.cpp @@ -386,6 +386,7 @@ unsigned int font_instance::Attribute(const gchar *key, gchar *str, unsigned int } if (free_res) { g_free(res); + res = 0; } return len; } |
