summaryrefslogtreecommitdiffstats
path: root/bindings/php5
diff options
context:
space:
mode:
authorBenjamin Dauvergne <bdauvergne@entrouvert.com>2010-02-17 10:15:26 +0000
committerBenjamin Dauvergne <bdauvergne@entrouvert.com>2010-02-17 10:15:26 +0000
commit9e683496c68f64efe5a222e7a39294e15a814d93 (patch)
tree5ba45d2d91cc8a504873e76947f0e43724c7da73 /bindings/php5
parent5d9e6f550a6813c4ff30e5f77cb49ea717ccc689 (diff)
downloadlasso-9e683496c68f64efe5a222e7a39294e15a814d93.tar.gz
lasso-9e683496c68f64efe5a222e7a39294e15a814d93.tar.xz
lasso-9e683496c68f64efe5a222e7a39294e15a814d93.zip
Binding php5: fix generation of list freeing
* bindings/php5/wrapper_source.py: free_glist wants a GList** as first argument.
Diffstat (limited to 'bindings/php5')
-rw-r--r--bindings/php5/wrapper_source.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/bindings/php5/wrapper_source.py b/bindings/php5/wrapper_source.py
index b9ccc48f..2f932720 100644
--- a/bindings/php5/wrapper_source.py
+++ b/bindings/php5/wrapper_source.py
@@ -137,10 +137,10 @@ PHP_MSHUTDOWN_FUNCTION(lasso)
raise Exception('unknown element-type: ' + repr(type))
if is_cstring(elem_type):
function = 'set_array_from_list_of_strings'
- free_function = 'free_glist(%(c_variable)s, (GFunc)free);'
+ free_function = 'free_glist(&%(c_variable)s, (GFunc)free);'
elif arg_type(elem_type).startswith('xmlNode'):
function = 'set_array_from_list_of_xmlnodes'
- free_function = 'free_glist(%(c_variable)s, (GFunc)xmlFree);'
+ free_function = 'free_glist(&%(c_variable)s, (GFunc)xmlFree);'
elif is_object(elem_type):
function = 'set_array_from_list_of_objects'
free_function = 'g_list_free(%(c_variable)s);'