mirror of
https://github.com/Relintai/sdl2_frt.git
synced 2024-12-20 22:16:49 +01:00
Pandora: Fixed memory leak in video implementation.
This commit is contained in:
parent
53ac57128b
commit
8d6cbdd235
@ -51,8 +51,10 @@ static void
|
|||||||
PND_destroy(SDL_VideoDevice * device)
|
PND_destroy(SDL_VideoDevice * device)
|
||||||
{
|
{
|
||||||
if (device->driverdata != NULL) {
|
if (device->driverdata != NULL) {
|
||||||
|
SDL_free(device->driverdata);
|
||||||
device->driverdata = NULL;
|
device->driverdata = NULL;
|
||||||
}
|
}
|
||||||
|
SDL_free(device);
|
||||||
}
|
}
|
||||||
|
|
||||||
static SDL_VideoDevice *
|
static SDL_VideoDevice *
|
||||||
|
Loading…
Reference in New Issue
Block a user