(x_destroy_window): Decrement ref count of x_screen struct.
This commit is contained in:
parent
3db0cdac49
commit
4eacadbd66
1 changed files with 6 additions and 0 deletions
|
@ -5161,6 +5161,12 @@ x_destroy_window (f)
|
|||
free_frame_faces (f);
|
||||
XFlushQueue ();
|
||||
|
||||
FRAME_X_SCREEN (f)->reference_count--;
|
||||
#if 0
|
||||
if (FRAME_X_SCREEN (f)->reference_count == 0)
|
||||
free (FRAME_X_SCREEN (f));
|
||||
#endif
|
||||
|
||||
xfree (f->display.x);
|
||||
f->display.x = 0;
|
||||
if (f == x_focus_frame)
|
||||
|
|
Loading…
Add table
Reference in a new issue