summaryrefslogtreecommitdiff
path: root/src/editfns.c
diff options
context:
space:
mode:
authorDmitry Antipov <dmantipov@yandex.ru>2012-07-26 09:23:25 +0400
committerDmitry Antipov <dmantipov@yandex.ru>2012-07-26 09:23:25 +0400
commit3628596ac2be344eb034e22e579a0690571fa8a9 (patch)
treeeec228a022981d54fcdc60ecdfd4cdee0ff4a78c /src/editfns.c
parent670d85ea14e772836797d43101f9c5c5cc1af05e (diff)
downloademacs-3628596ac2be344eb034e22e579a0690571fa8a9.tar.gz
Explicitly free restriction data that are not needed anymore.
* editfns.c (save_restriction_restore): Free restriction data.
Diffstat (limited to 'src/editfns.c')
-rw-r--r--src/editfns.c4
1 files changed, 4 insertions, 0 deletions
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)
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. */