emacs-diffs
[Top][All Lists]
Advanced

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

[Emacs-diffs] /srv/bzr/emacs/trunk r109212: Explicitly free restriction


From: Dmitry Antipov
Subject: [Emacs-diffs] /srv/bzr/emacs/trunk r109212: Explicitly free restriction data that are not needed anymore.
Date: Thu, 26 Jul 2012 09:23:25 +0400
User-agent: Bazaar (2.5.0)

------------------------------------------------------------
revno: 109212
committer: Dmitry Antipov <address@hidden>
branch nick: trunk
timestamp: Thu 2012-07-26 09:23:25 +0400
message:
  Explicitly free restriction data that are not needed anymore.
  * editfns.c (save_restriction_restore): Free restriction data.
modified:
  src/ChangeLog
  src/editfns.c
=== modified file 'src/ChangeLog'
--- a/src/ChangeLog     2012-07-26 01:27:33 +0000
+++ b/src/ChangeLog     2012-07-26 05:23:25 +0000
@@ -1,3 +1,8 @@
+2012-07-26  Dmitry Antipov  <address@hidden>
+
+       Explicitly free restriction data that are not needed anymore.
+       * editfns.c (save_restriction_restore): Free restriction data.
+
 2012-07-26  Stefan Monnier  <address@hidden>
 
        * eval.c (Fautoload_do_load): Rename from do_autoload, export to Lisp,

=== modified file 'src/editfns.c'
--- a/src/editfns.c     2012-07-17 07:43:01 +0000
+++ b/src/editfns.c     2012-07-26 05:23:25 +0000
@@ -3379,6 +3379,10 @@
 
          buf->clip_changed = 1; /* Remember that the narrowing changed. */
        }
+      /* These aren't needed anymore, so don't wait for GC.  */
+      free_marker (XCAR (data));
+      free_marker (XCDR (data));
+      free_cons (XCONS (data));
     }
   else
     /* A buffer, which means that there was no old restriction.  */


reply via email to

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