X11: Fixed memory leak when initializing multiple screens.

This commit is contained in:
Philipp Wiesemann 2015-12-05 17:08:07 +01:00
parent 4abb73298a
commit 32147ba780
1 changed files with 2 additions and 2 deletions

View File

@ -491,10 +491,10 @@ X11_InitModes_XRandR(_THIS)
display.driverdata = displaydata;
SDL_AddVideoDisplay(&display);
}
}
}
X11_XRRFreeScreenResources(res);
}
}
if (_this->num_displays == 0) {
return SDL_SetError("No available displays");