kmsdrm: Fix leaking SDL_VideoDevice*
This commit is contained in:
parent
071ebfc1d7
commit
13f724bb38
1 changed files with 2 additions and 0 deletions
|
@ -74,6 +74,8 @@ KMSDRM_Destroy(SDL_VideoDevice * device)
|
||||||
SDL_free(device->driverdata);
|
SDL_free(device->driverdata);
|
||||||
device->driverdata = NULL;
|
device->driverdata = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
SDL_free(device);
|
||||||
SDL_KMSDRM_UnloadSymbols();
|
SDL_KMSDRM_UnloadSymbols();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue