summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar Jonathan Beck2009-07-08 19:35:58 +0200
committerGravatar Jonathan Beck2009-07-08 19:35:58 +0200
commit192f335086e55e5e550557e630c5b9de461570d0 (patch)
tree58f9ee42947b6f8dc731459890cfe371c530856b /src
parentc8a140dce1d160c1766d3e0ac1346900efc193f3 (diff)
downloadlibplist-192f335086e55e5e550557e630c5b9de461570d0.tar.gz
libplist-192f335086e55e5e550557e630c5b9de461570d0.tar.bz2
Unlink node from tree when freeing.
Diffstat (limited to 'src')
-rw-r--r--src/plist.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plist.c b/src/plist.c
index e43d50d..cd563aa 100644
--- a/src/plist.c
+++ b/src/plist.c
@@ -46,6 +46,7 @@ plist_data_t plist_new_plist_data(void)
static void plist_free_node(GNode * node, gpointer none)
{
+ g_node_unlink(node);
plist_data_t data = plist_get_data(node);
if (data) {
switch (data->type) {