diff options
Diffstat (limited to 'bindings/lang_java.py')
-rw-r--r-- | bindings/lang_java.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/bindings/lang_java.py b/bindings/lang_java.py index 84aa885f..64f7cd8c 100644 --- a/bindings/lang_java.py +++ b/bindings/lang_java.py @@ -524,6 +524,11 @@ protected static native void destroy(long cptr); if is_string_type(arg_type): print >> fd, ' if (%s)' % arg_name print >> fd, ' g_free(%s);' % arg_name + elif arg_type == 'GList*': + if arg_options.get('elem_type') == 'char*': + print >> fd, ' free_glist(&%s, free);' % arg_name + else: + raise Exception('Freeing args of type list of \'%s\' not supported.' % arg_options.get('elem_type')) # Return if m.return_type: |