From 900a8008c4dbd6cc27dbac83ea6b162e6f88ff7f Mon Sep 17 00:00:00 2001 From: Benjamin Dauvergne Date: Mon, 14 Jun 2010 21:21:25 +0000 Subject: Binding python: fix freeing of list return values for methods with the transfer full flag The output 'print' were missing, oups :( --- bindings/python/lang.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'bindings/python') diff --git a/bindings/python/lang.py b/bindings/python/lang.py index efda521c..df7ba2e5 100644 --- a/bindings/python/lang.py +++ b/bindings/python/lang.py @@ -69,7 +69,7 @@ class Binding: def free_value(self, fd, type, name = None): if not name: - name = arg_anme(type) + name = arg_name(type) if not name: raise Exception('Cannot free, missing a name') if is_cstring(type): @@ -81,9 +81,9 @@ class Binding: elif is_glist(type): etype = element_type(type) if is_cstring(etype): - ' lasso_release_list_of_strings(%s);' % name + print >> fd, ' lasso_release_list_of_strings(%s);' % name elif is_object(etype): - ' lasso_release_list_of_gobjects(%s);' % name + print >> fd, ' lasso_release_list_of_gobjects(%s);' % name else: raise Exception('Unsupported caller owned return type %s' % ((repr(type), name),)) elif is_hashtable(type): -- cgit