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 f85c07e3c8d5eb3f1472b78cad0dd91078410af1..225da6854a6b8d3e76165e85d0d09a6ea2eb320f 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);