applemedia: iosurfacememory: alloc with g_new0

...since the base class doesn't use g_slice anymore
This commit is contained in:
Alessandro Decina 2016-01-19 12:56:40 +11:00
parent 88f509a710
commit ed7df2da3c

View file

@ -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);