mirror of
https://github.com/shadps4-emu/ext-SDL.git
synced 2024-11-26 19:40:23 +00:00
testffmpeg: use SDL_free instead of free
This commit is contained in:
parent
f8c2ec5462
commit
db31367999
@ -196,7 +196,7 @@ static SDL_bool CreateWindowAndRenderer(SDL_WindowFlags window_flags, const char
|
||||
char *saveptr, *token;
|
||||
token = SDL_strtok_r(extensions, " ", &saveptr);
|
||||
if (!token) {
|
||||
free(extensions);
|
||||
SDL_free(extensions);
|
||||
return SDL_FALSE;
|
||||
}
|
||||
do {
|
||||
@ -207,7 +207,7 @@ static SDL_bool CreateWindowAndRenderer(SDL_WindowFlags window_flags, const char
|
||||
}
|
||||
} while ((token = SDL_strtok_r(NULL, " ", &saveptr)) != NULL);
|
||||
|
||||
free(extensions);
|
||||
SDL_free(extensions);
|
||||
|
||||
if (SDL_GL_ExtensionSupported("GL_OES_EGL_image")) {
|
||||
glEGLImageTargetTexture2DOESFunc = (PFNGLEGLIMAGETARGETTEXTURE2DOESPROC)eglGetProcAddress("glEGLImageTargetTexture2DOES");
|
||||
|
Loading…
Reference in New Issue
Block a user