Skip to content

Commit

Permalink
nacl: Fixed freeing static memory on video quit.
Browse files Browse the repository at this point in the history
  • Loading branch information
philippwiesemann committed Aug 5, 2017
1 parent 1f69846 commit b8a7dd7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/video/nacl/SDL_naclvideo.c
Expand Up @@ -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);
}

Expand Down

0 comments on commit b8a7dd7

Please sign in to comment.