diff options
author | Benjamin Dauvergne <bdauvergne@entrouvert.com> | 2012-05-05 23:00:05 +0200 |
---|---|---|
committer | Benjamin Dauvergne <bdauvergne@entrouvert.com> | 2012-05-05 23:00:05 +0200 |
commit | 1473b92b8636bf9f7325ef304a627e5258fbc659 (patch) | |
tree | 05c95fb518c77768205cfb2fd4d0701329ece229 /bindings | |
parent | f4fb55bd89f161f29fd99552ca3d33ca11dd59df (diff) | |
download | lasso-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.py | 2 |
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();' |