dmx: fix false memory allocation.
beNumVisuals and the number of GLX Visuals can be significantly different.
This commit is contained in:
parent
17cd262257
commit
246c10441b
|
@ -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) {
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user