mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-24 08:04:30 +00:00
dmx: fix false memory allocation.
beNumVisuals and the number of GLX Visuals can be significantly different.
This commit is contained in:
@@ -746,8 +746,7 @@ void InitOutput(ScreenInfo *pScreenInfo, int argc, char *argv[])
|
||||
nconfigs = dmxScreen->numGlxVisuals;
|
||||
}
|
||||
|
||||
configprivs = xalloc(dmxScreen->beNumVisuals *
|
||||
sizeof(dmxGlxVisualPrivate*));
|
||||
configprivs = xalloc(nconfigs * sizeof(dmxGlxVisualPrivate*));
|
||||
|
||||
if (configs != NULL && configprivs != NULL) {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user