gst/gstbuffer.h: remove gst_buffer_free, use gst_data_unref
[platform/upstream/gstreamer.git] / gst / gstdata.c
index eaa2691..57fa3bd 100644 (file)
@@ -34,8 +34,8 @@ gst_data_get_type (void)
   
   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;
 }
 
@@ -169,23 +169,6 @@ gst_data_copy_on_write (GstData *data)
 }
 
 /**
- * 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
  *