]> git.eshelyaron.com Git - emacs.git/commitdiff
(reset_malloc_hooks): Set the hooks to the previous
authorAndreas Schwab <schwab@suse.de>
Sun, 16 Sep 2007 09:25:45 +0000 (09:25 +0000)
committerAndreas Schwab <schwab@suse.de>
Sun, 16 Sep 2007 09:25:45 +0000 (09:25 +0000)
values instead of zapping them.

src/ChangeLog
src/alloc.c

index 696386952f77f884f3e6dbde2a845137b29f9893..12562c88c930458fa7855fc75792336cded6ff1a 100644 (file)
@@ -1,3 +1,8 @@
+2007-09-16  Andreas Schwab  <schwab@suse.de>
+
+       * alloc.c (reset_malloc_hooks): Set the hooks to the previous
+       values instead of zapping them.
+
 2007-09-14  Glenn Morris  <rgm@gnu.org>
 
        * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
index 8aea81a0f72fd9b38a1645fac0a7a2b49a079536..f1758158344e10ddaa12b4f438b95393f04e9e05 100644 (file)
@@ -1343,9 +1343,9 @@ emacs_blocked_realloc (ptr, size, ptr2)
 void
 reset_malloc_hooks ()
 {
-  __free_hook = 0;
-  __malloc_hook = 0;
-  __realloc_hook = 0;
+  __free_hook = old_free_hook;
+  __malloc_hook = old_malloc_hook;
+  __realloc_hook = old_realloc_hook;
 }
 #endif /* HAVE_GTK_AND_PTHREAD */