]> 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:40:45 +0000 (09:40 +0000)
committerAndreas Schwab <schwab@suse.de>
Sun, 16 Sep 2007 09:40:45 +0000 (09:40 +0000)
values instead of zapping them.

src/alloc.c

index bcec8ea45606d56797ccec3e63275e0c502a1a70..3e2b6649e96447f15910328f5f20bf9e39da9a50 100644 (file)
@@ -1342,9 +1342,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 */