Use SDL_free
parent
2004aaf3bb
commit
aef7105408
|
@ -181,7 +181,7 @@ SDL_GetPrefPath(const char *org, const char *app)
|
||||||
dir = (char *) SDL_malloc(len);
|
dir = (char *) SDL_malloc(len);
|
||||||
if (!dir) {
|
if (!dir) {
|
||||||
SDL_OutOfMemory();
|
SDL_OutOfMemory();
|
||||||
free(canon);
|
SDL_free(canon);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -925,7 +925,7 @@ void gxm_finish(SDL_Renderer *renderer)
|
||||||
sceGxmSyncObjectDestroy(data->displayBufferSync[i]);
|
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->depthBufferUid);
|
||||||
mem_gpu_free(data->stencilBufferUid);
|
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) {
|
if (!texture_data) {
|
||||||
free(texture);
|
SDL_free(texture);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue