[bindings/python] free xmlnode argument owned by the callee

This commit is contained in:
Benjamin Dauvergne 2012-05-05 23:00:05 +02:00
parent f4fb55bd89
commit 1473b92b86
1 changed files with 2 additions and 0 deletions

View File

@ -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();'