[librsvg] Use correct free func



commit fe489cc14d942b2a8ff91c395cc057eea0d33aac
Author: Christian Persch <chpe gnome org>
Date:   Fri Jun 4 20:56:03 2010 +0200

    Use correct free func
    
    Use xmlFree() on strings from libxml, not free().
    
    Bug #620592.

 rsvg-base.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/rsvg-base.c b/rsvg-base.c
index 71ed7a9..5e45962 100644
--- a/rsvg-base.c
+++ b/rsvg-base.c
@@ -826,8 +826,8 @@ rsvg_entity_decl (void *data, const xmlChar * name, int type,
       
     entity = xmlNewEntity(NULL, name, type, resolvedPublicId, resolvedSystemId, content);
 
-    free(resolvedPublicId);
-    free(resolvedSystemId);
+    xmlFree(resolvedPublicId);
+    xmlFree(resolvedSystemId);
 
     g_hash_table_insert (entities, g_strdup ((const char*) name), entity);
 #else



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