if (!type)
type = g_boxed_type_register_static ("GstData",
- (GBoxedCopyFunc) gst_data_copy,
- (GBoxedFreeFunc) gst_data_free);
+ (GBoxedCopyFunc) gst_data_ref,
+ (GBoxedFreeFunc) gst_data_unref);
return type;
}
}
/**
- * gst_data_free:
- * @data: a #GstData to free
- *
- * Frees the given #GstData. This function will call the custom free function
- * provided by the subclass.
- */
-void
-gst_data_free (GstData *data)
-{
- if (!data)
- return;
-
- if (data->free)
- data->free (data);
-}
-
-/**
* gst_data_ref:
* @data: a #GstData to reference
*