tests: Fix a leak in the 'asset' test
[platform/upstream/gst-editing-services.git] / 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);