diff options
author | Gerd Moellmann <gerd@gnu.org> | 2000-12-07 11:43:22 +0000 |
---|---|---|
committer | Gerd Moellmann <gerd@gnu.org> | 2000-12-07 11:43:22 +0000 |
commit | 0dea0fed5cd0f9a3d4ff691acba50e16f6fe850d (patch) | |
tree | d42e132a75df35937482b29585e55ceb274e968a /src/widget.c | |
parent | 4ca78676d23e085f6ba5a20e4af29f1058db420c (diff) | |
download | emacs-0dea0fed5cd0f9a3d4ff691acba50e16f6fe850d.tar.gz |
(EmacsFrameDestroy): Call x_free_gcs instead of
freeing GCs here.
Diffstat (limited to 'src/widget.c')
-rw-r--r-- | src/widget.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/widget.c b/src/widget.c index 9e8672cb57c..f502a24e685 100644 --- a/src/widget.c +++ b/src/widget.c @@ -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 @@ EmacsFrameDestroy (widget) 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) |