rem: else tPtr->fgGC = WMColorGC(WMBlackColor(tPtr->view->screen));
add: else { WMColor *color = WMBlackColor(tPtr->view->screen); tPtr->fgGC = WMColorGC(color); WMReleaseColor(color); }
context: WMSetTextForegroundColor(WMText *tPtr, WMColor *color){    if (!tPtr)        return;    if (color)         tPtr->fgGC = WMColorGC(color);    else        tPtr->fgGC = WMColorGC(WMBlackColor(tPtr->view->screen));    paintText(tPtr);}