tests: Fix a leak in the 'asset' test
authorThibault Saunier <tsaunier@igalia.com>
Thu, 28 Mar 2019 14:09:13 +0000 (11:09 -0300)
committerThibault Saunier <tsaunier@igalia.com>
Mon, 15 Apr 2019 20:18:11 +0000 (16:18 -0400)
tests/check/ges/asset.c

index c604c42..89ebdfd 100644 (file)
@@ -37,6 +37,7 @@ source_asset_created (GObject * source, GAsyncResult * res,
   if (GPOINTER_TO_INT (expected_ok)) {
     fail_unless (a != NULL);
     fail_unless (error == NULL);
+    g_object_unref (a);
   } else {
     fail_unless (a == NULL);
     assert_equals_int (error->domain, GST_RESOURCE_ERROR);