diff options
author | Rico Tzschichholz <ricotz@ubuntu.com> | 2019-01-31 15:25:05 +0100 |
---|---|---|
committer | Rico Tzschichholz <ricotz@ubuntu.com> | 2019-01-31 15:25:05 +0100 |
commit | 284f77c4db11c660dc99917aae38a71baf63e09f (patch) | |
tree | bb37733915273f7f36586cb49a60a010896de621 | |
parent | 275f71f3ee523c4d6e0cecef290d9a0fe6da5290 (diff) | |
download | zeitgeist-284f77c4db11c660dc99917aae38a71baf63e09f.tar.gz |
test-log: Use correct free function for ZeitgeistResultSet
Additionally free leaking GArrays
-rw-r--r-- | test/c/test-log.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/test/c/test-log.c b/test/c/test-log.c index ff1c6021..7963cb52 100644 --- a/test/c/test-log.c +++ b/test/c/test-log.c @@ -118,7 +118,8 @@ _on_events_received (ZeitgeistLog *log, (GAsyncReadyCallback) _on_events_deleted, expected_events); - g_ptr_array_unref (events); + g_array_unref (event_ids); + g_object_unref (events); } static void @@ -143,6 +144,8 @@ _on_events_inserted (ZeitgeistLog *log, zeitgeist_log_get_events (log, event_ids, NULL, (GAsyncReadyCallback) _on_events_received, expected_events); + + g_array_unref (event_ids); } static void |