emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] /srv/bzr/emacs/trunk r109731: * nsterm.m (fd_handler:): Al


From: Jan D.
Subject: [Emacs-diffs] /srv/bzr/emacs/trunk r109731: * nsterm.m (fd_handler:): Alloc and release a NSAutoreleasePool in
Date: Tue, 21 Aug 2012 22:50:31 +0200
User-agent: Bazaar (2.5.0)

------------------------------------------------------------
revno: 109731
fixes bug: http://debbugs.gnu.org/12247
committer: Jan D. <address@hidden>
branch nick: trunk
timestamp: Tue 2012-08-21 22:50:31 +0200
message:
  * nsterm.m (fd_handler:): Alloc and release a NSAutoreleasePool in
  the loop.
modified:
  src/ChangeLog
  src/nsterm.m
=== modified file 'src/ChangeLog'
--- a/src/ChangeLog     2012-08-21 17:18:21 +0000
+++ b/src/ChangeLog     2012-08-21 20:50:31 +0000
@@ -1,3 +1,8 @@
+2012-08-21  Jan Djärv  <address@hidden>
+
+       * nsterm.m (fd_handler:): Alloc and release a NSAutoreleasePool in
+       the loop (Bug#12247).
+
 2012-08-21  Paul Eggert  <address@hidden>
 
        * lisp.h (vcopy): Use memcpy rather than our own loop.

=== modified file 'src/nsterm.m'
--- a/src/nsterm.m      2012-08-18 01:42:52 +0000
+++ b/src/nsterm.m      2012-08-21 20:50:31 +0000
@@ -4600,11 +4600,15 @@
 
   SELECT_TYPE readfds, writefds, *wfds;
   EMACS_TIME timeout, *tmo;
+  NSAutoreleasePool *pool = nil;
 
   /* NSTRACE (fd_handler); */
 
   for (;;) 
     {
+      [pool release];
+      pool = [[NSAutoreleasePool alloc] init];
+
       if (waiting)
         {
           SELECT_TYPE fds;


reply via email to

[Prev in Thread] Current Thread [Next in Thread]