class = g_type_class_ref (ges_asset_get_extractable_type (asset));
dummy_instance =
- g_object_new (ges_asset_get_extractable_type (asset), NULL);
+ g_object_ref_sink (g_object_new (ges_asset_get_extractable_type (asset),
+ NULL));
if (class->can_load_uri (dummy_instance, uri, error)) {
g_type_class_unref (class);
gst_object_unref (dummy_instance);
asset = GES_ASSET (tmp->data);
class = g_type_class_ref (ges_asset_get_extractable_type (asset));
dummy_instance =
- g_object_new (ges_asset_get_extractable_type (asset), NULL);
+ g_object_ref_sink (g_object_new (ges_asset_get_extractable_type (asset),
+ NULL));
if (class->can_load_uri (dummy_instance, id, NULL)) {
g_type_class_unref (class);
asset = gst_object_ref (asset);