Browse Source

nacl: Fixed freeing static memory on video quit.

Philipp Wiesemann 8 years ago
parent
commit
b8a7dd7788
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/video/nacl/SDL_naclvideo.c

+ 1 - 1
src/video/nacl/SDL_naclvideo.c

@@ -81,7 +81,7 @@ static int NACL_Available(void) {
 static void NACL_DeleteDevice(SDL_VideoDevice *device) {
 static void NACL_DeleteDevice(SDL_VideoDevice *device) {
     SDL_VideoData *driverdata = (SDL_VideoData*) device->driverdata;
     SDL_VideoData *driverdata = (SDL_VideoData*) device->driverdata;
     driverdata->ppb_core->ReleaseResource((PP_Resource) driverdata->ppb_message_loop);
     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);
     SDL_free(device);
 }
 }