Feature #17 ยป 0016-sdl3-Replace-SDL_FreeSurface-call-with-SDL_DestroySu.patch
| client/gui-sdl3/graphics.h | ||
|---|---|---|
|
#define FREESURFACE(ptr) \
|
||
|
do { \
|
||
|
if (ptr) { \
|
||
|
SDL_FreeSurface(ptr); \
|
||
|
SDL_DestroySurface(ptr); \
|
||
|
ptr = NULL; \
|
||
|
} \
|
||
|
} while (FALSE)
|
||