diff options
-rw-r--r-- | bindings/lang_python.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/bindings/lang_python.py b/bindings/lang_python.py index c80705bd..87d72e61 100644 --- a/bindings/lang_python.py +++ b/bindings/lang_python.py @@ -812,6 +812,16 @@ register_constants(PyObject *d) print >> fd, '(%s)' % m.return_type, print >> fd, '%s(%s);' % (m.name, ', '.join([x[1] for x in m.args])) + for f, arg in zip(parse_tuple_format, m.args): + if arg[0] == 'GList*': + qualifier = arg[2].get('elem_type') + if qualifier == 'char*': + print >> fd, ' free_list(&%s, g_free);' % arg[1] + elif qualifier == 'xmlNode*': + print >> fd, ' free_list(&%s, xmlFreeNode);' % arg[1] + elif qualifier == 'LassoNode': + print >> fd, ' free_list(&%s, g_object_unref);' % arg[1] + if not m.return_type: print >> fd, ' return noneRef();' else: |