diff options
author | Ken Brown <kbrown@cornell.edu> | 2014-05-24 13:59:22 -0400 |
---|---|---|
committer | Ken Brown <kbrown@cornell.edu> | 2014-05-24 13:59:22 -0400 |
commit | 791dd8e75bf03e9910409e9b6f6f70c37aa42332 (patch) | |
tree | 50514c36e5343a1333187f7589171d07b825b4a9 /src/w32term.c | |
parent | 3b1c4207001a24c047f73fe882ae16a1ff05cdc4 (diff) | |
download | emacs-791dd8e75bf03e9910409e9b6f6f70c37aa42332.tar.gz |
Fix bug#17510 with a pointer freed more than once (Cygwin-w32-build).
* src/w32term.c (x_delete_display) [CYGWIN]: Don't free
dpyinfo->w32_id_name, to make sure it doesn't get freed more than
once.
Diffstat (limited to 'src/w32term.c')
-rw-r--r-- | src/w32term.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/w32term.c b/src/w32term.c index f914b5f8625..2781fb63d62 100644 --- a/src/w32term.c +++ b/src/w32term.c @@ -6426,7 +6426,11 @@ x_delete_display (struct w32_display_info *dpyinfo) if (dpyinfo->palette) DeleteObject (dpyinfo->palette); } + /* Avoid freeing dpyinfo->w32_id_name more than once if emacs is + running as a daemon; see bug#17510. */ +#ifndef CYGWIN xfree (dpyinfo->w32_id_name); +#endif w32_reset_fringes (); } |