From ed7df2da3c007655af5abb109778e81a5d0d8aed Mon Sep 17 00:00:00 2001 From: Alessandro Decina Date: Tue, 19 Jan 2016 12:56:40 +1100 Subject: [PATCH] applemedia: iosurfacememory: alloc with g_new0 ...since the base class doesn't use g_slice anymore --- sys/applemedia/iosurfacememory.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/applemedia/iosurfacememory.c b/sys/applemedia/iosurfacememory.c index de57bb24dc..694202c428 100644 --- a/sys/applemedia/iosurfacememory.c +++ b/sys/applemedia/iosurfacememory.c @@ -168,7 +168,7 @@ _io_surface_memory_new (GstGLContext * context, g_return_val_if_fail (target == GST_GL_TEXTURE_TARGET_RECTANGLE, NULL); - mem = g_slice_new0 (GstIOSurfaceMemory); + mem = g_new0 (GstIOSurfaceMemory, 1); gst_gl_memory_init (&mem->gl_mem, _io_surface_memory_allocator, NULL, context, target, NULL, info, plane, valign, user_data, notify);