Commit 4eacadbd authored by Richard M. Stallman's avatar Richard M. Stallman
Browse files

(x_destroy_window): Decrement ref count of x_screen struct.

parent 3db0cdac
......@@ -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));
xfree (f->display.x);
f->display.x = 0;
if (f == x_focus_frame)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment