diff options
| author | Jim Blandy | 1993-05-23 20:01:34 +0000 |
|---|---|---|
| committer | Jim Blandy | 1993-05-23 20:01:34 +0000 |
| commit | 173004a3a4d9240f9ebaf5cf504c094ff773f68d (patch) | |
| tree | 7daa72028b69841805e098929713297a0adce318 /src | |
| parent | f76b81d67b65fc08d952ee1df098489b6516ceb6 (diff) | |
| download | emacs-173004a3a4d9240f9ebaf5cf504c094ff773f68d.tar.gz emacs-173004a3a4d9240f9ebaf5cf504c094ff773f68d.zip | |
* xfaces.c (Fset_face_attribute_internal): Don't free the frame's
normal_gc or reverse_gc.
Diffstat (limited to 'src')
| -rw-r--r-- | src/xfaces.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/xfaces.c b/src/xfaces.c index 5638ed65d5f..4c053f663fa 100644 --- a/src/xfaces.c +++ b/src/xfaces.c | |||
| @@ -903,7 +903,9 @@ DEFUN ("set-face-attribute-internal", Fset_face_attribute_internal, | |||
| 903 | if (id == 0) | 903 | if (id == 0) |
| 904 | { | 904 | { |
| 905 | BLOCK_INPUT; | 905 | BLOCK_INPUT; |
| 906 | if (FRAME_DEFAULT_FACE (f)->gc != 0) | 906 | if (FRAME_DEFAULT_FACE (f)->gc != 0 |
| 907 | && FRAME_DEFAULT_FACE (f)->gc != f->display.x->normal_gc | ||
| 908 | && FRAME_DEFAULT_FACE (f)->gc != f->display.x->reverse_gc) | ||
| 907 | XFreeGC (x_current_display, FRAME_DEFAULT_FACE (f)->gc); | 909 | XFreeGC (x_current_display, FRAME_DEFAULT_FACE (f)->gc); |
| 908 | build_face (f, FRAME_DEFAULT_FACE (f)); | 910 | build_face (f, FRAME_DEFAULT_FACE (f)); |
| 909 | UNBLOCK_INPUT; | 911 | UNBLOCK_INPUT; |
| @@ -912,7 +914,9 @@ DEFUN ("set-face-attribute-internal", Fset_face_attribute_internal, | |||
| 912 | if (id == 1) | 914 | if (id == 1) |
| 913 | { | 915 | { |
| 914 | BLOCK_INPUT; | 916 | BLOCK_INPUT; |
| 915 | if (FRAME_MODE_LINE_FACE (f)->gc != 0) | 917 | if (FRAME_MODE_LINE_FACE (f)->gc != 0 |
| 918 | && FRAME_MODE_LINE_FACE (f)->gc != f->display.x->normal_gc | ||
| 919 | && FRAME_MODE_LINE_FACE (f)->gc != f->display.x->reverse_gc) | ||
| 916 | XFreeGC (x_current_display, FRAME_MODE_LINE_FACE (f)->gc); | 920 | XFreeGC (x_current_display, FRAME_MODE_LINE_FACE (f)->gc); |
| 917 | build_face (f, FRAME_MODE_LINE_FACE (f)); | 921 | build_face (f, FRAME_MODE_LINE_FACE (f)); |
| 918 | UNBLOCK_INPUT; | 922 | UNBLOCK_INPUT; |