From 1473b92b8636bf9f7325ef304a627e5258fbc659 Mon Sep 17 00:00:00 2001 From: Benjamin Dauvergne Date: Sat, 5 May 2012 23:00:05 +0200 Subject: [PATCH] [bindings/python] free xmlnode argument owned by the callee --- bindings/python/lang.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bindings/python/lang.py b/bindings/python/lang.py index aa7b29b3..d38c37bb 100644 --- a/bindings/python/lang.py +++ b/bindings/python/lang.py @@ -996,6 +996,8 @@ register_constants(PyObject *d) print >> fd, ' free_list(&%s, (GFunc)g_object_unref);' % arg[1] elif is_time_t_pointer(arg): print >> fd, ' if (%s) free(%s);' % (arg[1], arg[1]) + elif not is_transfer_full(arg) and is_xml_node(arg): + self.free_value(fd, arg) if not m.return_type: print >> fd, ' return noneRef();'