mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 11:45:25 +00:00
tests: Fix a leak in test_filesource_images
This commit is contained in:
parent
f6d0de047a
commit
4d801d85fe
1 changed files with 10 additions and 0 deletions
|
@ -171,6 +171,9 @@ GST_START_TEST (test_filesource_images)
|
|||
trobj = ges_timeline_object_create_track_object (tlobj, v);
|
||||
fail_unless (GES_IS_TRACK_IMAGE_SOURCE (trobj));
|
||||
|
||||
/* The track holds a reference to the object */
|
||||
ASSERT_OBJECT_REFCOUNT (trobj, "Video Track Object", 1);
|
||||
|
||||
ges_track_remove_object (v, trobj);
|
||||
ges_timeline_object_release_track_object (tlobj, trobj);
|
||||
|
||||
|
@ -180,6 +183,13 @@ GST_START_TEST (test_filesource_images)
|
|||
trobj = ges_timeline_object_create_track_object (tlobj, a);
|
||||
fail_unless (GES_IS_TRACK_AUDIO_TEST_SOURCE (trobj));
|
||||
|
||||
/* The track holds a reference to the object */
|
||||
ASSERT_OBJECT_REFCOUNT (trobj, "Audio Track Object", 1);
|
||||
|
||||
ges_track_remove_object (v, trobj);
|
||||
ges_timeline_object_release_track_object (tlobj, trobj);
|
||||
|
||||
|
||||
g_object_unref (a);
|
||||
g_object_unref (v);
|
||||
g_object_unref (tlobj);
|
||||
|
|
Loading…
Reference in a new issue