# HG changeset patch # User Gerd Moellmann # Date 976189402 0 # Node ID d446a08a996e95ac0f0475d241f10209e201a1bd # Parent d302f6935ff842034dc1eb74fc973b1243c7e5f1 (EmacsFrameDestroy): Call x_free_gcs instead of freeing GCs here. diff -r d302f6935ff8 -r d446a08a996e src/widget.c --- a/src/widget.c Thu Dec 07 11:43:06 2000 +0000 +++ b/src/widget.c Thu Dec 07 11:43:22 2000 +0000 @@ -1,5 +1,5 @@ /* The emacs frame widget. - Copyright (C) 1992, 1993 Free Software Foundation, Inc. + Copyright (C) 1992, 1993, 2000 Free Software Foundation, Inc. This file is part of GNU Emacs. @@ -757,10 +757,7 @@ if (! s->output_data.x->normal_gc) abort (); BLOCK_INPUT; - /* need to be careful that the face-freeing code doesn't free these too */ - XFreeGC (XtDisplay (widget), s->output_data.x->normal_gc); - XFreeGC (XtDisplay (widget), s->output_data.x->reverse_gc); - XFreeGC (XtDisplay (widget), s->output_data.x->cursor_gc); + x_free_gcs (s); if (s->output_data.x->white_relief.gc) XFreeGC (XtDisplay (widget), s->output_data.x->white_relief.gc); if (s->output_data.x->black_relief.gc)