Commit a799e1be authored by Seungha Yang's avatar Seungha Yang 🐑 Committed by Thibault Saunier
Browse files

tests: ges: Fix various leak

parent e1fff8f8
......@@ -36,6 +36,7 @@ source_asset_created (GObject * source, GAsyncResult * res, gpointer udata)
fail_unless (a == NULL);
assert_equals_int (error->domain, GST_RESOURCE_ERROR);
g_clear_error (&error);
g_main_loop_quit (mainloop);
}
......@@ -90,6 +91,8 @@ GST_START_TEST (test_transition_change_asset)
/* Now try to set the a and see if the vtype is properly updated */
a = ges_asset_request (GES_TYPE_TRANSITION_CLIP, "box-wipe-lc", NULL);
ges_extractable_set_asset (extractable, a);
gst_object_unref (a);
fail_unless_equals_int (GES_TRANSITION_CLIP (extractable)->vtype, 26);
gst_object_unref (extractable);
......
......@@ -485,7 +485,7 @@ GST_START_TEST (test_ges_timeline_remove_track)
ASSERT_OBJECT_REFCOUNT (timeline, "1 for the us", 1);
tmp = ges_layer_get_clips (layer);
assert_equals_int (g_list_length (tmp), 3);
g_list_foreach (tmp, (GFunc) gst_object_unref, NULL);
g_list_free_full (tmp, (GDestroyNotify) gst_object_unref);
gst_check_objects_destroyed_on_unref (G_OBJECT (timeline),
G_OBJECT (layer), t1, t2, t3, NULL);
......
......@@ -240,6 +240,7 @@ GST_START_TEST (test_timeline_auto_transition)
asset = ges_asset_request (GES_TYPE_TEST_CLIP, NULL, NULL);
fail_unless (GES_IS_ASSET (asset));
gst_object_unref (asset);
GST_DEBUG ("Create timeline");
timeline = ges_timeline_new_audio_video ();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment