nacl: Fixed freeing static memory on video quit.
authorPhilipp Wiesemann <philipp.wiesemann@arcor.de>
Sat, 05 Aug 2017 22:10:25 +0200
changeset 111898a23ac7134d2
parent 11188 0fddce7bda2c
child 11190 478630f6b756
nacl: Fixed freeing static memory on video quit.
src/video/nacl/SDL_naclvideo.c
     1.1 --- a/src/video/nacl/SDL_naclvideo.c	Sat Aug 05 22:10:15 2017 +0200
     1.2 +++ b/src/video/nacl/SDL_naclvideo.c	Sat Aug 05 22:10:25 2017 +0200
     1.3 @@ -81,7 +81,7 @@
     1.4  static void NACL_DeleteDevice(SDL_VideoDevice *device) {
     1.5      SDL_VideoData *driverdata = (SDL_VideoData*) device->driverdata;
     1.6      driverdata->ppb_core->ReleaseResource((PP_Resource) driverdata->ppb_message_loop);
     1.7 -    SDL_free(device->driverdata);
     1.8 +    /* device->driverdata is not freed because it points to static memory */
     1.9      SDL_free(device);
    1.10  }
    1.11