From 9e683496c68f64efe5a222e7a39294e15a814d93 Mon Sep 17 00:00:00 2001 From: Benjamin Dauvergne Date: Wed, 17 Feb 2010 10:15:26 +0000 Subject: Binding php5: fix generation of list freeing * bindings/php5/wrapper_source.py: free_glist wants a GList** as first argument. --- bindings/php5/wrapper_source.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bindings/php5') 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);' -- cgit