瀏覽代碼

Pandora: use SDL_malloc

Sylvain 4 年之前
父節點
當前提交
79b37cc55f
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/video/pandora/SDL_pandora.c

+ 2 - 2
src/video/pandora/SDL_pandora.c

@@ -612,7 +612,7 @@ PND_gl_createcontext(_THIS, SDL_Window * window)
 
 #ifdef WIZ_GLES_LITE
     if( !hNativeWnd ) {
-    hNativeWnd = (NativeWindowType)malloc(16*1024);
+    hNativeWnd = (NativeWindowType)SDL_malloc(16*1024);
 
     if(!hNativeWnd)
         printf( "Error: Wiz framebuffer allocatation failed\n" );
@@ -819,7 +819,7 @@ PND_gl_deletecontext(_THIS, SDL_GLContext context)
 #ifdef WIZ_GLES_LITE
     if( hNativeWnd != 0 )
     {
-      free(hNativeWnd);
+      SDL_free(hNativeWnd);
       hNativeWnd = 0;
       printf( "SDL: Wiz framebuffer released\n" );
     }