Project

General

Profile

Feature #17 ยป 0016-sdl3-Replace-SDL_FreeSurface-call-with-SDL_DestroySu.patch

Marko Lindqvist, 12/03/2023 01:12 AM

View differences:

client/gui-sdl3/graphics.h
#define FREESURFACE(ptr) \
do { \
if (ptr) { \
SDL_FreeSurface(ptr); \
SDL_DestroySurface(ptr); \
ptr = NULL; \
} \
} while (FALSE)
    (1-1/1)