commit | 804032e99f576b5cf9b1246f2b83857468e9c71b | [log] [tgz] |
---|---|---|
author | Christophe Fergeau <cfergeau@mandriva.com> | Tue Nov 17 21:20:46 2009 +0100 |
committer | Jonathan Beck <jonabeck@gmail.com> | Thu Nov 19 18:13:36 2009 +0100 |
tree | c7cbe267a4354f67e0ff7842c5cd96940b288e96 | |
parent | d503698b5e2c709fcf581a4c19f64bf36b6a1bea [diff] |
don't leak GNodes in plist_free Before recursing over its children, plist_free_node started by detaching the current GNode from its parent which means that calling g_node_destroy on the root of the tree was freeing only the top-level GNode while what was intended was to free the whole tree. Don't leak memory by not detaching children GNodes from their parents so that g_node_destroy on the toplevel GNode can clean everything.