]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix bug#17510 with a pointer freed more than once (Cygwin-w32-build).
authorKen Brown <kbrown@cornell.edu>
Sat, 24 May 2014 17:59:22 +0000 (13:59 -0400)
committerKen Brown <kbrown@cornell.edu>
Sat, 24 May 2014 17:59:22 +0000 (13:59 -0400)
* 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.

src/ChangeLog
src/w32term.c

index c95e0c9de159323f41cc107b5ea19628bf89c8b5..f7747c1e408885573e46f0a62bf433ffc94031cf 100644 (file)
@@ -1,3 +1,9 @@
+2014-05-24  Ken Brown  <kbrown@cornell.edu>
+
+       * w32term.c (x_delete_display) [CYGWIN]: Don't free
+       dpyinfo->w32_id_name, to make sure it doesn't get freed more than
+       once.  (Bug#17510)
+
 2014-05-24  Stefan Monnier  <monnier@iro.umontreal.ca>
 
        * xdisp.c: Bind inhibit-quit during pre-redisplay-function.
index f914b5f862567b3155c61652ea8dfbda56692bef..2781fb63d6266fa1ffcd7bd92931444bb590c611 100644 (file)
@@ -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 ();
 }