changeset 109301:d7201a19a376

* xfaces.c (realize_face): Garbage the frame if a face is removed (Bug#6593).
author Chong Yidong <cyd@stupidchicken.com>
date Sat, 10 Jul 2010 13:58:29 -0400
parents 454cfd5e9cc0
children 60516122d066 3453c9fcaa97
files src/ChangeLog src/xfaces.c
diffstat 2 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/ChangeLog	Tue Jul 06 21:46:58 2010 -0700
+++ b/src/ChangeLog	Sat Jul 10 13:58:29 2010 -0400
@@ -1,3 +1,8 @@
+2010-07-10  Chong Yidong  <cyd@stupidchicken.com>
+
+	* xfaces.c (realize_face): Garbage the frame if a face is removed
+	(Bug#6593).
+
 2010-07-05  Andreas Schwab  <schwab@linux-m68k.org>
 
 	* keyboard.c: Remove duplicate <setjmp.h>.
--- a/src/xfaces.c	Tue Jul 06 21:46:58 2010 -0700
+++ b/src/xfaces.c	Sat Jul 10 13:58:29 2010 -0400
@@ -5783,6 +5783,7 @@
       struct face *former_face = cache->faces_by_id[former_face_id];
       uncache_face (cache, former_face);
       free_realized_face (cache->f, former_face);
+      SET_FRAME_GARBAGED (cache->f);
     }
 
   if (FRAME_WINDOW_P (cache->f))