Pandora: Fixed memory leak in video implementation.

This commit is contained in:
Philipp Wiesemann 2016-07-20 21:00:52 +02:00
parent 53ac57128b
commit 8d6cbdd235
1 changed files with 2 additions and 0 deletions

View File

@ -51,8 +51,10 @@ static void
PND_destroy(SDL_VideoDevice * device)
{
if (device->driverdata != NULL) {
SDL_free(device->driverdata);
device->driverdata = NULL;
}
SDL_free(device);
}
static SDL_VideoDevice *