summaryrefslogtreecommitdiffstats
path: root/bindings
diff options
context:
space:
mode:
authorBenjamin Dauvergne <bdauvergne@entrouvert.com>2010-06-14 21:21:25 +0000
committerBenjamin Dauvergne <bdauvergne@entrouvert.com>2010-06-14 21:21:25 +0000
commit900a8008c4dbd6cc27dbac83ea6b162e6f88ff7f (patch)
treea19c716f4db5b0f3ea7fe8a0069fe27cf15ea24a /bindings
parentfbb0ef52ee9103c02617827d31971db3688f1ed8 (diff)
downloadlasso-900a8008c4dbd6cc27dbac83ea6b162e6f88ff7f.tar.gz
lasso-900a8008c4dbd6cc27dbac83ea6b162e6f88ff7f.tar.xz
lasso-900a8008c4dbd6cc27dbac83ea6b162e6f88ff7f.zip
Binding python: fix freeing of list return values for methods with the transfer full flag
The output 'print' were missing, oups :(
Diffstat (limited to 'bindings')
-rw-r--r--bindings/python/lang.py6
1 files changed, 3 insertions, 3 deletions
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):