diff options
author | Sebastian Pölsterl <sebp@k-d-w.org> | 2012-02-05 11:41:12 +0100 |
---|---|---|
committer | Sebastian Pölsterl <sebp@k-d-w.org> | 2012-02-05 11:41:12 +0100 |
commit | c9dc7a1fa2c4c5fa8b25780ebac06e4df0c428d7 (patch) | |
tree | 7dfb631331323ca72d53c4901e9b355262f10d28 /tests/scanner | |
parent | ff9651a6de7b7c356477f11472b94d7bec05ea2c (diff) | |
download | gobject-introspection-c9dc7a1fa2c4c5fa8b25780ebac06e4df0c428d7.tar.gz |
Use g_free as element_free_func
The elements of the GPtrArray are of type char*, therefore use
g_free rather than g_object_unref to as element_free_func
Diffstat (limited to 'tests/scanner')
-rw-r--r-- | tests/scanner/regress.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/scanner/regress.c b/tests/scanner/regress.c index 3b0fc502..8fd210e8 100644 --- a/tests/scanner/regress.c +++ b/tests/scanner/regress.c @@ -1327,7 +1327,7 @@ regress_test_garray_container_return (void) { GPtrArray *array; - array = g_ptr_array_new_with_free_func (g_object_unref); + array = g_ptr_array_new_with_free_func (g_free); g_ptr_array_add (array, g_strdup ("regress")); return array; |