[dia] [meta info] Fix memory leak during load



commit 1d4e78762e9359f58b8f0d350c75f50daa06650b
Author: Hans Breuer <hans breuer org>
Date:   Fri Aug 6 19:04:20 2010 +0200

    [meta info] Fix memory leak during load

 lib/prop_dict.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/lib/prop_dict.c b/lib/prop_dict.c
index 8d4a651..c739ae7 100644
--- a/lib/prop_dict.c
+++ b/lib/prop_dict.c
@@ -105,6 +105,7 @@ dictprop_load(DictProperty *prop, AttributeNode attr, DataNode data)
       gchar *value = data_string(attribute_first_data (kv));
       if (value)
         g_hash_table_insert (prop->dict, g_strdup((gchar *)key), value);
+      xmlFree (key);
     } else {
       g_warning ("Dictionary key missing");
     }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]