diff options
author | Simon Feltman <sfeltman@src.gnome.org> | 2014-09-11 15:02:40 -0700 |
---|---|---|
committer | Colin Walters <walters@verbum.org> | 2015-10-19 18:22:15 -0400 |
commit | e1bd35241ba6bd0815e0b044b112d1799e1154c9 (patch) | |
tree | 47e56cc902634ae48dabf177355457438a046158 /tests/scanner | |
parent | d9a6824b2dd373f7bd3d3b3f434d2fe7069eaa51 (diff) | |
download | gobject-introspection-e1bd35241ba6bd0815e0b044b112d1799e1154c9.tar.gz |
tests: Unref async result after adding to idle callback
g_simple_async_result_complete_in_idle() will add its own reference for
managing the async result. We need to unref the result after calling this
so we don't leak.
https://bugzilla.gnome.org/show_bug.cgi?id=736517
Diffstat (limited to 'tests/scanner')
-rw-r--r-- | tests/scanner/regress.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/scanner/regress.c b/tests/scanner/regress.c index 83175b07..b842e2f6 100644 --- a/tests/scanner/regress.c +++ b/tests/scanner/regress.c @@ -3639,6 +3639,7 @@ regress_test_async_ready_callback (GAsyncReadyCallback callback) GSimpleAsyncResult *result = g_simple_async_result_new (NULL, callback, NULL, regress_test_async_ready_callback); g_simple_async_result_complete_in_idle (result); + g_object_unref (result); G_GNUC_END_IGNORE_DEPRECATIONS } |