diff options
Diffstat (limited to 'tests/gimarshallingtests.c')
-rw-r--r-- | tests/gimarshallingtests.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/gimarshallingtests.c b/tests/gimarshallingtests.c index 0869a9a2..dc7fabd6 100644 --- a/tests/gimarshallingtests.c +++ b/tests/gimarshallingtests.c @@ -1156,6 +1156,8 @@ gi_marshalling_tests_init_function (gint *n_args, char ***argv) return TRUE; (*n_args)--; g_assert (argv != NULL); + /* we have transfer ownership full, so we need to free the element ourself */ + g_free ((*argv)[*n_args]); (*argv)[*n_args] = NULL; return TRUE; } |