mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-11 18:05:37 +00:00
tests: don't leak clips list in basic unit test
This commit is contained in:
parent
131760b6d3
commit
d106bc24f7
1 changed files with 2 additions and 0 deletions
|
@ -498,6 +498,8 @@ 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 (tmp);
|
||||||
|
|
||||||
check_destroyed (G_OBJECT (timeline), G_OBJECT (layer), t1, t2, t3, NULL);
|
check_destroyed (G_OBJECT (timeline), G_OBJECT (layer), t1, t2, t3, NULL);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue