fail_unless (a == NULL);
assert_equals_int (error->domain, GST_RESOURCE_ERROR);
+ g_clear_error (&error);
g_main_loop_quit (mainloop);
}
/* 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);
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);
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 ();