]> git.eshelyaron.com Git - emacs.git/commitdiff
* nsterm.m (x_free_frame_resources): Move xfree so freed memory isn't
authorJan Djärv <jan.h.d@swipnet.se>
Mon, 11 Jun 2012 16:53:12 +0000 (18:53 +0200)
committerJan Djärv <jan.h.d@swipnet.se>
Mon, 11 Jun 2012 16:53:12 +0000 (18:53 +0200)
referenced.

Fixes: debbugs:11583
src/ChangeLog
src/nsterm.m

index 08e1c7dbd73d17387befb63ed122dad2c227e9c4..838703578c67e672721795b3c659337a8326f4b3 100644 (file)
@@ -1,3 +1,8 @@
+2012-06-11  Jan Djärv  <jan.h.d@swipnet.se>
+
+       * nsterm.m (x_free_frame_resources): Move xfree so freed memory isn't
+       referenced (Bug#11583).
+
 2012-06-01  Chong Yidong  <cyd@gnu.org>
 
        * Version 24.1 released.
index 7cbaf9913111c40d77da7ec43b771ea14414e36f..aad1f3283d6310a7de2107e9cb61a4bb9a1fee11 100644 (file)
@@ -1158,14 +1158,14 @@ x_free_frame_resources (struct frame *f)
       hlinfo->mouse_face_mouse_frame = 0;
     }
 
-  xfree (f->output_data.ns);
-
   if (f->output_data.ns->miniimage != nil)
     [f->output_data.ns->miniimage release];
 
   [[view window] close];
   [view release];
 
+  xfree (f->output_data.ns);
+
   UNBLOCK_INPUT;
 }