tests: Fix a leak in the 'asset' test

This commit is contained in:
Thibault Saunier 2019-03-28 11:09:13 -03:00
parent 7d7be4eecd
commit 49b004fe30

View file

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