From 0bf4c13f8cb4a90073210f2ace480701b854d370 Mon Sep 17 00:00:00 2001 From: "Jon A. Cruz" Date: Tue, 19 Jul 2011 00:19:23 -0700 Subject: Minor code safety tweak to null out stale pointer. (bzr r10474) --- src/libnrtype/FontInstance.cpp | 1 + 1 file changed, 1 insertion(+) 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; } -- cgit v1.2.3