summaryrefslogtreecommitdiffstats
path: root/bindings
diff options
context:
space:
mode:
authorBenjamin Dauvergne <bdauvergne@entrouvert.com>2012-05-05 23:00:05 +0200
committerBenjamin Dauvergne <bdauvergne@entrouvert.com>2012-05-05 23:00:05 +0200
commit1473b92b8636bf9f7325ef304a627e5258fbc659 (patch)
tree05c95fb518c77768205cfb2fd4d0701329ece229 /bindings
parentf4fb55bd89f161f29fd99552ca3d33ca11dd59df (diff)
downloadlasso-1473b92b8636bf9f7325ef304a627e5258fbc659.tar.gz
lasso-1473b92b8636bf9f7325ef304a627e5258fbc659.tar.xz
lasso-1473b92b8636bf9f7325ef304a627e5258fbc659.zip
[bindings/python] free xmlnode argument owned by the callee
Diffstat (limited to 'bindings')
-rw-r--r--bindings/python/lang.py2
1 files changed, 2 insertions, 0 deletions
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();'