aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDmitry Antipov2012-07-26 09:23:25 +0400
committerDmitry Antipov2012-07-26 09:23:25 +0400
commit3628596ac2be344eb034e22e579a0690571fa8a9 (patch)
treeeec228a022981d54fcdc60ecdfd4cdee0ff4a78c
parent670d85ea14e772836797d43101f9c5c5cc1af05e (diff)
downloademacs-3628596ac2be344eb034e22e579a0690571fa8a9.tar.gz
emacs-3628596ac2be344eb034e22e579a0690571fa8a9.zip
Explicitly free restriction data that are not needed anymore.
* editfns.c (save_restriction_restore): Free restriction data.
-rw-r--r--src/ChangeLog5
-rw-r--r--src/editfns.c4
2 files changed, 9 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index eb74f458942..3b85ef30795 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,8 @@
12012-07-26 Dmitry Antipov <dmantipov@yandex.ru>
2
3 Explicitly free restriction data that are not needed anymore.
4 * editfns.c (save_restriction_restore): Free restriction data.
5
12012-07-26 Stefan Monnier <monnier@iro.umontreal.ca> 62012-07-26 Stefan Monnier <monnier@iro.umontreal.ca>
2 7
3 * eval.c (Fautoload_do_load): Rename from do_autoload, export to Lisp, 8 * eval.c (Fautoload_do_load): Rename from do_autoload, export to Lisp,
diff --git a/src/editfns.c b/src/editfns.c
index 9cfd0449daa..f174594dd97 100644
--- a/src/editfns.c
+++ b/src/editfns.c
@@ -3379,6 +3379,10 @@ save_restriction_restore (Lisp_Object data)
3379 3379
3380 buf->clip_changed = 1; /* Remember that the narrowing changed. */ 3380 buf->clip_changed = 1; /* Remember that the narrowing changed. */
3381 } 3381 }
3382 /* These aren't needed anymore, so don't wait for GC. */
3383 free_marker (XCAR (data));
3384 free_marker (XCDR (data));
3385 free_cons (XCONS (data));
3382 } 3386 }
3383 else 3387 else
3384 /* A buffer, which means that there was no old restriction. */ 3388 /* A buffer, which means that there was no old restriction. */