From aef7105408357fc7e6c165688d559da739e8247e Mon Sep 17 00:00:00 2001 From: Sylvain Date: Mon, 22 Nov 2021 16:58:04 +0100 Subject: [PATCH] Use SDL_free --- src/filesystem/riscos/SDL_sysfilesystem.c | 2 +- src/render/vitagxm/SDL_render_vita_gxm_tools.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/filesystem/riscos/SDL_sysfilesystem.c b/src/filesystem/riscos/SDL_sysfilesystem.c index c3230194c..1b908a193 100644 --- a/src/filesystem/riscos/SDL_sysfilesystem.c +++ b/src/filesystem/riscos/SDL_sysfilesystem.c @@ -181,7 +181,7 @@ SDL_GetPrefPath(const char *org, const char *app) dir = (char *) SDL_malloc(len); if (!dir) { SDL_OutOfMemory(); - free(canon); + SDL_free(canon); return NULL; } diff --git a/src/render/vitagxm/SDL_render_vita_gxm_tools.c b/src/render/vitagxm/SDL_render_vita_gxm_tools.c index 6d0a4b9cc..42fc148e9 100644 --- a/src/render/vitagxm/SDL_render_vita_gxm_tools.c +++ b/src/render/vitagxm/SDL_render_vita_gxm_tools.c @@ -925,7 +925,7 @@ void gxm_finish(SDL_Renderer *renderer) sceGxmSyncObjectDestroy(data->displayBufferSync[i]); } - // free the depth and stencil buffer + // Free the depth and stencil buffer mem_gpu_free(data->depthBufferUid); mem_gpu_free(data->stencilBufferUid); @@ -1040,7 +1040,7 @@ create_gxm_texture(VITA_GXM_RenderData *data, unsigned int w, unsigned int h, Sc } if (!texture_data) { - free(texture); + SDL_free(texture); return NULL; }