(sdl2_gfx.c) Check if pointer is not NULL first

This commit is contained in:
twinaphex 2015-08-12 19:24:56 +02:00
parent d4c0a09a03
commit 2d8ef11944

View File

@ -605,6 +605,8 @@ static void sdl2_gfx_free(void *data)
static void sdl2_gfx_set_rotation(void *data, unsigned rotation)
{
sdl2_video_t *vid = (sdl2_video_t*)data;
if (vid)
vid->rotation = 270 * rotation;
}