aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDmitry Antipov2013-12-11 19:06:04 +0400
committerDmitry Antipov2013-12-11 19:06:04 +0400
commit5a80236fc8817e3b7fabcba233246ec862758a29 (patch)
treeaaed7684a58c58d15e6f0bd750f29b463bca05e3 /src
parent5b4f37ab9c9e7aa5472c47d9e9c2b508344f4858 (diff)
downloademacs-5a80236fc8817e3b7fabcba233246ec862758a29.tar.gz
emacs-5a80236fc8817e3b7fabcba233246ec862758a29.zip
* nsterm.m (x_free_frame_resources):
* term.c (tty_free_frame_resources): * xterm.c (x_free_frame_resources): Do not check for non-NULL face cache because it's implied by free_frame_faces anyway. * w32term.c (x_free_frame_resources): Likewise. Do not call free_frame_faces twice.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog9
-rw-r--r--src/nsterm.m4
-rw-r--r--src/term.c9
-rw-r--r--src/w32term.c6
-rw-r--r--src/xterm.c3
5 files changed, 14 insertions, 17 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 8c19c83378a..9f3161a220d 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,12 @@
12013-12-11 Dmitry Antipov <dmantipov@yandex.ru>
2
3 * nsterm.m (x_free_frame_resources):
4 * term.c (tty_free_frame_resources):
5 * xterm.c (x_free_frame_resources): Do not check for non-NULL
6 face cache because it's implied by free_frame_faces anyway.
7 * w32term.c (x_free_frame_resources): Likewise. Do not call
8 free_frame_faces twice.
9
12013-12-11 RĂ¼diger Sonderfeld <ruediger@c-plusplus.de> 102013-12-11 RĂ¼diger Sonderfeld <ruediger@c-plusplus.de>
2 11
3 * editfns.c (Fformat_time_string): Mention %F in the doc. 12 * editfns.c (Fformat_time_string): Mention %F in the doc.
diff --git a/src/nsterm.m b/src/nsterm.m
index 9c87923f32e..733c05ae53a 100644
--- a/src/nsterm.m
+++ b/src/nsterm.m
@@ -1155,9 +1155,7 @@ x_free_frame_resources (struct frame *f)
1155 block_input (); 1155 block_input ();
1156 1156
1157 free_frame_menubar (f); 1157 free_frame_menubar (f);
1158 1158 free_frame_faces (f);
1159 if (FRAME_FACE_CACHE (f))
1160 free_frame_faces (f);
1161 1159
1162 if (f == dpyinfo->x_focus_frame) 1160 if (f == dpyinfo->x_focus_frame)
1163 dpyinfo->x_focus_frame = 0; 1161 dpyinfo->x_focus_frame = 0;
diff --git a/src/term.c b/src/term.c
index 85a994bf2bc..7b6cb41e23d 100644
--- a/src/term.c
+++ b/src/term.c
@@ -3833,10 +3833,7 @@ static void
3833tty_free_frame_resources (struct frame *f) 3833tty_free_frame_resources (struct frame *f)
3834{ 3834{
3835 eassert (FRAME_TERMCAP_P (f)); 3835 eassert (FRAME_TERMCAP_P (f));
3836 3836 free_frame_faces (f);
3837 if (FRAME_FACE_CACHE (f))
3838 free_frame_faces (f);
3839
3840 xfree (f->output_data.tty); 3837 xfree (f->output_data.tty);
3841} 3838}
3842 3839
@@ -3848,9 +3845,7 @@ static void
3848tty_free_frame_resources (struct frame *f) 3845tty_free_frame_resources (struct frame *f)
3849{ 3846{
3850 eassert (FRAME_TERMCAP_P (f) || FRAME_MSDOS_P (f)); 3847 eassert (FRAME_TERMCAP_P (f) || FRAME_MSDOS_P (f));
3851 3848 free_frame_faces (f);
3852 if (FRAME_FACE_CACHE (f))
3853 free_frame_faces (f);
3854} 3849}
3855#endif /* MSDOS */ 3850#endif /* MSDOS */
3856 3851
diff --git a/src/w32term.c b/src/w32term.c
index ba336b5c65b..ec11bc11535 100644
--- a/src/w32term.c
+++ b/src/w32term.c
@@ -6080,17 +6080,13 @@ x_free_frame_resources (struct frame *f)
6080 /* We must free faces before destroying windows because some 6080 /* We must free faces before destroying windows because some
6081 font-driver (e.g. xft) access a window while finishing a 6081 font-driver (e.g. xft) access a window while finishing a
6082 face. */ 6082 face. */
6083 if (FRAME_FACE_CACHE (f)) 6083 free_frame_faces (f);
6084 free_frame_faces (f);
6085 6084
6086 if (FRAME_W32_WINDOW (f)) 6085 if (FRAME_W32_WINDOW (f))
6087 my_destroy_window (f, FRAME_W32_WINDOW (f)); 6086 my_destroy_window (f, FRAME_W32_WINDOW (f));
6088 6087
6089 free_frame_menubar (f); 6088 free_frame_menubar (f);
6090 6089
6091 if (FRAME_FACE_CACHE (f))
6092 free_frame_faces (f);
6093
6094 xfree (f->output_data.w32); 6090 xfree (f->output_data.w32);
6095 f->output_data.w32 = NULL; 6091 f->output_data.w32 = NULL;
6096 6092
diff --git a/src/xterm.c b/src/xterm.c
index 27d3d4a4bd1..2c5c01baa84 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -9129,8 +9129,7 @@ x_free_frame_resources (struct frame *f)
9129 /* We must free faces before destroying windows because some 9129 /* We must free faces before destroying windows because some
9130 font-driver (e.g. xft) access a window while finishing a 9130 font-driver (e.g. xft) access a window while finishing a
9131 face. */ 9131 face. */
9132 if (FRAME_FACE_CACHE (f)) 9132 free_frame_faces (f);
9133 free_frame_faces (f);
9134 9133
9135 if (f->output_data.x->icon_desc) 9134 if (f->output_data.x->icon_desc)
9136 XDestroyWindow (FRAME_X_DISPLAY (f), f->output_data.x->icon_desc); 9135 XDestroyWindow (FRAME_X_DISPLAY (f), f->output_data.x->icon_desc);