summaryrefslogtreecommitdiff
path: root/tools/glib-client-gen.py
diff options
context:
space:
mode:
authorSimon McVittie <simon.mcvittie@collabora.co.uk>2008-01-11 14:43:34 +0000
committerSimon McVittie <simon.mcvittie@collabora.co.uk>2008-01-11 14:43:34 +0000
commitaa33c172e420e66966465269caaa568778c85df2 (patch)
treea5e287c8a9ec2dc99141b1a502f1a53f31bea070 /tools/glib-client-gen.py
parent2923494215718c9c04008126494d7b7df4555461 (diff)
downloadtelepathy-glib-aa33c172e420e66966465269caaa568778c85df2.tar.gz
glib-client-gen: cope correctly with GValueArray being NULL if there were no 'out' arguments
20080111144334-53eee-8408929f176b2202d56349d2f0bdc74ed141ea28.gz
Diffstat (limited to 'tools/glib-client-gen.py')
-rw-r--r--tools/glib-client-gen.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/tools/glib-client-gen.py b/tools/glib-client-gen.py
index 06f9b34a0..9f0e2cd2e 100644
--- a/tools/glib-client-gen.py
+++ b/tools/glib-client-gen.py
@@ -822,7 +822,12 @@ class Generator(object):
self.b('')
- self.b(' g_value_array_free (args);')
+ if len(out_args) > 0:
+ self.b(' g_value_array_free (args);')
+ else:
+ self.b(' if (args != NULL)')
+ self.b(' g_value_array_free (args);')
+
self.b('}')
self.b('')