diff options
author | Alessandro Decina <alessandro.d@gmail.com> | 2016-01-19 12:56:40 +1100 |
---|---|---|
committer | Alessandro Decina <alessandro.d@gmail.com> | 2016-01-19 12:56:40 +1100 |
commit | ed7df2da3c007655af5abb109778e81a5d0d8aed (patch) | |
tree | b393cbbd743a62b9bc9c04a2b3a1b4c4c25b8440 /sys/applemedia/iosurfacememory.c | |
parent | 88f509a710f2b4acc8c32650b5f0bd14d6def699 (diff) | |
download | gstreamer-plugins-bad-ed7df2da3c007655af5abb109778e81a5d0d8aed.tar.gz |
applemedia: iosurfacememory: alloc with g_new0
...since the base class doesn't use g_slice anymore
Diffstat (limited to 'sys/applemedia/iosurfacememory.c')
-rw-r--r-- | sys/applemedia/iosurfacememory.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/applemedia/iosurfacememory.c b/sys/applemedia/iosurfacememory.c index de57bb24d..694202c42 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); |