# HG changeset patch # User Jim Blandy # Date 738187294 0 # Node ID c257860fda02f1bd33cb04f23a2213e4564478e7 # Parent 654eebe93c27d8ed8f33dd1f185bae3a6b32accf * xfaces.c (Fset_face_attribute_internal): Don't free the frame's normal_gc or reverse_gc. diff -r 654eebe93c27 -r c257860fda02 src/xfaces.c --- a/src/xfaces.c Sun May 23 19:52:07 1993 +0000 +++ b/src/xfaces.c Sun May 23 20:01:34 1993 +0000 @@ -903,7 +903,9 @@ if (id == 0) { BLOCK_INPUT; - if (FRAME_DEFAULT_FACE (f)->gc != 0) + if (FRAME_DEFAULT_FACE (f)->gc != 0 + && FRAME_DEFAULT_FACE (f)->gc != f->display.x->normal_gc + && FRAME_DEFAULT_FACE (f)->gc != f->display.x->reverse_gc) XFreeGC (x_current_display, FRAME_DEFAULT_FACE (f)->gc); build_face (f, FRAME_DEFAULT_FACE (f)); UNBLOCK_INPUT; @@ -912,7 +914,9 @@ if (id == 1) { BLOCK_INPUT; - if (FRAME_MODE_LINE_FACE (f)->gc != 0) + if (FRAME_MODE_LINE_FACE (f)->gc != 0 + && FRAME_MODE_LINE_FACE (f)->gc != f->display.x->normal_gc + && FRAME_MODE_LINE_FACE (f)->gc != f->display.x->reverse_gc) XFreeGC (x_current_display, FRAME_MODE_LINE_FACE (f)->gc); build_face (f, FRAME_MODE_LINE_FACE (f)); UNBLOCK_INPUT;