[gnome-maps] osmEdit: Fix memory leak when parsing XML document
- From: Marcus Lundblad <mlundblad src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-maps] osmEdit: Fix memory leak when parsing XML document
- Date: Tue, 29 Mar 2016 19:36:03 +0000 (UTC)
commit f40f8535a22575c3c9f846fa378b12a61378068c
Author: Marcus Lundblad <ml update uu se>
Date: Mon Mar 28 14:15:18 2016 +0200
osmEdit: Fix memory leak when parsing XML document
https://bugzilla.gnome.org/show_bug.cgi?id=764281
lib/maps-osm.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/lib/maps-osm.c b/lib/maps-osm.c
index ec13320..a1aac02 100644
--- a/lib/maps-osm.c
+++ b/lib/maps-osm.c
@@ -156,7 +156,7 @@ parse_node_refs (const xmlNode *node_ref_child)
}
g_hash_table_destroy (attributes);
- }
+ }
}
return node_refs;
@@ -468,6 +468,7 @@ maps_osm_parse (const char *content, guint length, GError **error)
}
xmlFreeNode (sub_node);
+ xmlFreeDoc (doc);
return object;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]