diff options
author | joye <joye> | 2014-02-20 21:25:42 (GMT) |
---|---|---|
committer | joye <joye> | 2014-02-20 21:25:42 (GMT) |
commit | 85d33eb68078b0ac07acf782f957453c2462ab50 (patch) | |
tree | ec940230238172a48b3c33c4918c5d4a2b47650d /src/bltGrText.C | |
parent | fd0b5e8aa99e737f5b5df3d66c7dd9c5a2b87f92 (diff) | |
download | blt-85d33eb68078b0ac07acf782f957453c2462ab50.zip blt-85d33eb68078b0ac07acf782f957453c2462ab50.tar.gz blt-85d33eb68078b0ac07acf782f957453c2462ab50.tar.bz2 |
*** empty log message ***
Diffstat (limited to 'src/bltGrText.C')
-rw-r--r-- | src/bltGrText.C | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/bltGrText.C b/src/bltGrText.C index 5f8a473..5e853d9 100644 --- a/src/bltGrText.C +++ b/src/bltGrText.C @@ -417,7 +417,7 @@ void Blt_Ts_ResetStyle(Tk_Window tkwin, TextStyle *stylePtr) GC newGC; XGCValues gcValues; unsigned long gcMask; - + gcMask = GCFont; gcValues.font = Tk_FontId(stylePtr->font); if (stylePtr->color != NULL) { @@ -425,9 +425,8 @@ void Blt_Ts_ResetStyle(Tk_Window tkwin, TextStyle *stylePtr) gcValues.foreground = stylePtr->color->pixel; } newGC = Tk_GetGC(tkwin, gcMask, &gcValues); - if (stylePtr->gc != NULL) { + if (stylePtr->gc != NULL) Tk_FreeGC(Tk_Display(tkwin), stylePtr->gc); - } stylePtr->gc = newGC; stylePtr->flags &= ~UPDATE_GC; |