diff options
Diffstat (limited to 'bindings/lang_python.py')
| -rw-r--r-- | bindings/lang_python.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bindings/lang_python.py b/bindings/lang_python.py index 049de1fa..687f351d 100644 --- a/bindings/lang_python.py +++ b/bindings/lang_python.py @@ -816,11 +816,11 @@ register_constants(PyObject *d) if arg[0] == 'GList*': qualifier = arg[2].get('elem_type') if qualifier == 'char*': - print >> fd, ' free_list(&%s, g_free);' % arg[1] + print >> fd, ' free_list(&%s, (GFunc)g_free);' % arg[1] elif qualifier == 'xmlNode*': - print >> fd, ' free_list(&%s, xmlFreeNode);' % arg[1] + print >> fd, ' free_list(&%s, (GFunc)xmlFreeNode);' % arg[1] elif qualifier == 'LassoNode': - print >> fd, ' free_list(&%s, g_object_unref);' % arg[1] + print >> fd, ' free_list(&%s, (GFunc)g_object_unref);' % arg[1] if not m.return_type: print >> fd, ' return noneRef();' |
