diff options
author | Aleksander Morgado <aleksander@lanedo.com> | 2012-09-19 08:51:06 +0200 |
---|---|---|
committer | Aleksander Morgado <aleksander@lanedo.com> | 2012-09-19 08:52:02 +0200 |
commit | dd82d6c92de205cee1ec8ba675254e83a325043d (patch) | |
tree | d6efc6e96730e3a0107baf2db582cd60d6d7e0e9 /build-aux | |
parent | c0bdb9df565749d795cc831ae748ea21575ca61b (diff) |
qmi-codegen: fix invalid `g_array_unref()' calls in generated code
Diffstat (limited to 'build-aux')
-rw-r--r-- | build-aux/qmi-codegen/VariableArray.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/build-aux/qmi-codegen/VariableArray.py b/build-aux/qmi-codegen/VariableArray.py index 5329306..cd102a5 100644 --- a/build-aux/qmi-codegen/VariableArray.py +++ b/build-aux/qmi-codegen/VariableArray.py @@ -376,5 +376,6 @@ class VariableArray(Variable): 'variable_name' : variable_name } template = ( - '${lp}g_array_unref (${variable_name});\n') + '${lp}if (${variable_name})\n' + '${lp} g_array_unref (${variable_name});\n') return string.Template(template).substitute(translations) |