From c2abb80c9a541a94df0a15126d0dcfa961fe5755 Mon Sep 17 00:00:00 2001 From: Palana Date: Fri, 4 Apr 2014 01:54:50 +0200 Subject: [PATCH] Use bzalloc instead of bmalloc+memset --- libobs-opengl/gl-cocoa.m | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/libobs-opengl/gl-cocoa.m b/libobs-opengl/gl-cocoa.m index a612c9874..b17eb26a2 100644 --- a/libobs-opengl/gl-cocoa.m +++ b/libobs-opengl/gl-cocoa.m @@ -217,8 +217,7 @@ void gl_getclientsize(struct gs_swap_chain *swap, uint32_t *width, texture_t texture_create_from_iosurface(device_t device, void *iosurf) { IOSurfaceRef ref = (IOSurfaceRef)iosurf; - struct gs_texture_2d *tex = bmalloc(sizeof(struct gs_texture_2d)); - memset(tex, 0, sizeof(struct gs_texture_2d)); + struct gs_texture_2d *tex = bzalloc(sizeof(struct gs_texture_2d)); OSType pf = IOSurfaceGetPixelFormat(ref); if (pf != 'BGRA')