mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-24 03:44:06 +00:00
dix: let FreeGCperDepth() operate on ScreenPtr and NULL protect it
Instead of retrieving the screen index from ScreenRec and passing this, so the ScreenRec is looked up again, just pass in the ScreenPtr that already have anyways. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
@@ -334,7 +334,7 @@ dix_main(int argc, char *argv[], char *envp[])
|
||||
}
|
||||
|
||||
for (i = screenInfo.numScreens - 1; i >= 0; i--) {
|
||||
FreeGCperDepth(i);
|
||||
FreeGCperDepth(screenInfo.screens[i]);
|
||||
FreeDefaultStipple(i);
|
||||
dixFreeScreenSpecificPrivates(screenInfo.screens[i]);
|
||||
(*screenInfo.screens[i]->CloseScreen) (screenInfo.screens[i]);
|
||||
|
||||
Reference in New Issue
Block a user