Project

General

Profile

Feature #102 ยป 0024-SDL3_gfx-Replace-SDL_FreeSurface-calls-with-SDL_Dest.patch

Marko Lindqvist, 12/31/2023 09:46 AM

View differences:

dependencies/SDL3_gfx/SDL3_rotozoom.c
* Cleanup temp surface
*/
if (src_converted) {
SDL_FreeSurface(rz_src);
SDL_DestroySurface(rz_src);
}
/*
......
* Cleanup temp surface
*/
if (src_converted) {
SDL_FreeSurface(rz_src);
SDL_DestroySurface(rz_src);
}
return NULL;
}
......
* Cleanup temp surface
*/
if (src_converted) {
SDL_FreeSurface(rz_src);
SDL_DestroySurface(rz_src);
}
/*
......
* Cleanup temp surface
*/
if (src_converted==1) {
SDL_FreeSurface(rz_src);
SDL_DestroySurface(rz_src);
}
}
/* Check error state; maybe need to cleanup destination */
if (haveError==1) {
if (rz_dst!=NULL) {
SDL_FreeSurface(rz_dst);
SDL_DestroySurface(rz_dst);
}
rz_dst=NULL;
}
    (1-1/1)