mirror of
https://github.com/RTimothyEdwards/magic.git
synced 2026-10-06 09:53:00 +02:00
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:
@@ -527,6 +527,7 @@ GrTkInit(dispType)
|
||||
TxPrintf("None of TrueColor 15, 16 or 24, or PseudoColor 8 found. "
|
||||
"Cannot initialize DISPLAY %s\n", getenv("DISPLAY"));
|
||||
XFree(grvisual_get);
|
||||
GrClosePtr = NULL;
|
||||
MainExit(1);
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user