GST_STATE_UNLOCK (bin);
GST_DEBUG_OBJECT (bin, "state continue done");
gst_object_unref (bin);
- g_free (data);
+ g_slice_free (BinContinueData, data);
return;
interrupted:
GST_STATE_UNLOCK (bin);
GST_DEBUG_OBJECT (bin, "state continue aborted due to intervening change");
gst_object_unref (bin);
- g_free (data);
+ g_slice_free (BinContinueData, data);
return;
}
}
"continue state change, pending %s",
gst_element_state_get_name (pending));
- cont = g_new0 (BinContinueData, 1);
+ cont = g_slice_new (BinContinueData);
/* ref to the bin */
cont->bin = gst_object_ref (bin);