changeset 1291:7c32612174c3

* buffer.c (reset_buffer): Do INITIALIZE_INTERVAL on the buffer's interval component. (Fkill_buffer): Likewise.
author Joseph Arceneaux <jla@gnu.org>
date Thu, 01 Oct 1992 01:22:22 +0000
parents 9b0ddca4773b
children d9a103f4843e
files src/buffer.c
diffstat 1 files changed, 8 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/buffer.c	Thu Oct 01 01:00:41 1992 +0000
+++ b/src/buffer.c	Thu Oct 01 01:22:22 1992 +0000
@@ -271,6 +271,10 @@
   b->auto_save_file_name = Qnil;
   b->read_only = Qnil;
   b->fieldlist = Qnil;
+
+  /* Only defined if Emacs is compiled with USE_TEXT_PROPERTIES */
+  INITIALIZE_INTERVAL (b, NULL_INTERVAL);
+
   reset_buffer_local_variables(b);
 }
 
@@ -729,6 +733,10 @@
     }
   b->markers = Qnil;
 
+  /* Only defined if Emacs is compiled with USE_TEXT_PROPERTIES */
+  INITIALIZE_INTERVAL (b, NULL_INTERVAL);
+  /* Perhaps we should explicitly free the interval tree here... */
+
   b->name = Qnil;
   BUFFER_FREE (BUF_BEG_ADDR (b));
   b->undo_list = Qnil;