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:
Dan Moore 2021-01-02 16:41:43 -08:00 committed by Tim Edwards
parent 4066d50332
commit 8dba03cebf
1 changed files with 1 additions and 0 deletions

View File

@ -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