caps: Use correct size for caps allocation
authorSebastian Dröge <sebastian.droege@collabora.co.uk>
Thu, 26 Jan 2012 13:55:30 +0000 (14:55 +0100)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Thu, 26 Jan 2012 13:55:30 +0000 (14:55 +0100)
gst/gstcaps.c

index f85c07e..225da68 100644 (file)
@@ -214,9 +214,9 @@ gst_caps_new_empty (void)
 {
   GstCaps *caps;
 
-  caps = g_slice_new (GstCaps);
+  caps = g_slice_new (GstCapsImpl);
 
-  gst_caps_init (caps, sizeof (GstCaps));
+  gst_caps_init (caps, sizeof (GstCapsImpl));
 
 #ifdef DEBUG_REFCOUNT
   GST_CAT_TRACE (GST_CAT_CAPS, "created caps %p", caps);