From b8a7dd7788cf215bd4b0bf04955012ff64da798b Mon Sep 17 00:00:00 2001 From: Philipp Wiesemann Date: Sat, 5 Aug 2017 22:10:25 +0200 Subject: [PATCH] nacl: Fixed freeing static memory on video quit. --- src/video/nacl/SDL_naclvideo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/video/nacl/SDL_naclvideo.c b/src/video/nacl/SDL_naclvideo.c index 4995e24a0c670..7d52861d3c394 100644 --- a/src/video/nacl/SDL_naclvideo.c +++ b/src/video/nacl/SDL_naclvideo.c @@ -81,7 +81,7 @@ static int NACL_Available(void) { static void NACL_DeleteDevice(SDL_VideoDevice *device) { SDL_VideoData *driverdata = (SDL_VideoData*) device->driverdata; driverdata->ppb_core->ReleaseResource((PP_Resource) driverdata->ppb_message_loop); - SDL_free(device->driverdata); + /* device->driverdata is not freed because it points to static memory */ SDL_free(device); }