Set GrClosePtr back to NULL before calling MainExit()
to squash the seg fault. It appears that calling GrTkClose before graphics are fully initialized causes this.
This commit is contained in:
parent
4066d50332
commit
8dba03cebf
|
|
@ -527,6 +527,7 @@ GrTkInit(dispType)
|
||||||
TxPrintf("None of TrueColor 15, 16 or 24, or PseudoColor 8 found. "
|
TxPrintf("None of TrueColor 15, 16 or 24, or PseudoColor 8 found. "
|
||||||
"Cannot initialize DISPLAY %s\n", getenv("DISPLAY"));
|
"Cannot initialize DISPLAY %s\n", getenv("DISPLAY"));
|
||||||
XFree(grvisual_get);
|
XFree(grvisual_get);
|
||||||
|
GrClosePtr = NULL;
|
||||||
MainExit(1);
|
MainExit(1);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue