summaryrefslogtreecommitdiffstats
path: root/bindings
diff options
context:
space:
mode:
authorBenjamin Dauvergne <bdauvergne@entrouvert.com>2012-05-05 21:22:34 (GMT)
committerBenjamin Dauvergne <bdauvergne@entrouvert.com>2012-05-05 21:22:34 (GMT)
commita8e571b4dd29d2cbd2ac1155edc696fd5b06bb5e (patch)
tree5dbbde5da2f72c7e5236b8103dbc5ad67258a708 /bindings
parentb7958a2e3190adf1f157a90742e4dd00115fbd7b (diff)
downloadlasso-a8e571b4dd29d2cbd2ac1155edc696fd5b06bb5e.zip
lasso-a8e571b4dd29d2cbd2ac1155edc696fd5b06bb5e.tar.gz
lasso-a8e571b4dd29d2cbd2ac1155edc696fd5b06bb5e.tar.bz2
[bindings/php5] remove redundant check to is_transfer_full
Diffstat (limited to 'bindings')
-rw-r--r--bindings/php5/wrapper_source.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/bindings/php5/wrapper_source.py b/bindings/php5/wrapper_source.py
index de1b9d2..f8211ff 100644
--- a/bindings/php5/wrapper_source.py
+++ b/bindings/php5/wrapper_source.py
@@ -185,7 +185,7 @@ PHP_MSHUTDOWN_FUNCTION(lasso)
} else {
RETVAL_NULL();
}'''
- if free or is_transfer_full(arg):
+ if free:
print >> self.fd, ' free(return_c_value);'
elif is_xml_node(arg):
print >> self.fd, '''\
@@ -206,7 +206,7 @@ PHP_MSHUTDOWN_FUNCTION(lasso)
print >> self.fd, '''\
set_array_from_list_of_strings((GList*)return_c_value, &return_value);
'''
- if free or is_transfer_full(arg):
+ if free:
print >> self.fd, ' lasso_release_list_of_strings(return_c_value);'
elif is_xml_node(el_type):
print >> self.fd, '''\
@@ -218,7 +218,7 @@ PHP_MSHUTDOWN_FUNCTION(lasso)
print >> self.fd, '''\
set_array_from_list_of_objects((GList*)return_c_value, &return_value);
'''
- if free or is_transfer_full(arg):
+ if free:
print >> self.fd, ' lasso_release_list_of_gobjects(return_c_value);'
else:
raise Exception('cannot return value for %s' % (arg,))
@@ -373,7 +373,7 @@ PHP_MSHUTDOWN_FUNCTION(lasso)
print >> self.fd, ' }'
try:
- self.return_value(m.return_arg, is_transfer_full(m.return_arg))
+ self.return_value(m.return_arg, is_transfer_full(m.return_arg, default=True))
except:
raise Exception('Cannot return value for function %s' % m)