mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-11 09:55:36 +00:00
tests: ges: Fix various leak
This commit is contained in:
parent
e1fff8f864
commit
a799e1be23
3 changed files with 5 additions and 1 deletions
|
@ -36,6 +36,7 @@ source_asset_created (GObject * source, GAsyncResult * res, gpointer udata)
|
||||||
fail_unless (a == NULL);
|
fail_unless (a == NULL);
|
||||||
assert_equals_int (error->domain, GST_RESOURCE_ERROR);
|
assert_equals_int (error->domain, GST_RESOURCE_ERROR);
|
||||||
|
|
||||||
|
g_clear_error (&error);
|
||||||
g_main_loop_quit (mainloop);
|
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 */
|
/* 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);
|
a = ges_asset_request (GES_TYPE_TRANSITION_CLIP, "box-wipe-lc", NULL);
|
||||||
ges_extractable_set_asset (extractable, a);
|
ges_extractable_set_asset (extractable, a);
|
||||||
|
gst_object_unref (a);
|
||||||
|
|
||||||
fail_unless_equals_int (GES_TRANSITION_CLIP (extractable)->vtype, 26);
|
fail_unless_equals_int (GES_TRANSITION_CLIP (extractable)->vtype, 26);
|
||||||
|
|
||||||
gst_object_unref (extractable);
|
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);
|
ASSERT_OBJECT_REFCOUNT (timeline, "1 for the us", 1);
|
||||||
tmp = ges_layer_get_clips (layer);
|
tmp = ges_layer_get_clips (layer);
|
||||||
assert_equals_int (g_list_length (tmp), 3);
|
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),
|
gst_check_objects_destroyed_on_unref (G_OBJECT (timeline),
|
||||||
G_OBJECT (layer), t1, t2, t3, NULL);
|
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);
|
asset = ges_asset_request (GES_TYPE_TEST_CLIP, NULL, NULL);
|
||||||
fail_unless (GES_IS_ASSET (asset));
|
fail_unless (GES_IS_ASSET (asset));
|
||||||
|
gst_object_unref (asset);
|
||||||
|
|
||||||
GST_DEBUG ("Create timeline");
|
GST_DEBUG ("Create timeline");
|
||||||
timeline = ges_timeline_new_audio_video ();
|
timeline = ges_timeline_new_audio_video ();
|
||||||
|
|
Loading…
Reference in a new issue