From: Andreas Schwab Date: Sun, 16 Sep 2007 09:40:45 +0000 (+0000) Subject: (reset_malloc_hooks): Set the hooks to the previous X-Git-Tag: emacs-pretest-22.1.90~800 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=480ecb6b5ce579af4008d4556bc71fa08098aa94;p=emacs.git (reset_malloc_hooks): Set the hooks to the previous values instead of zapping them. --- diff --git a/src/alloc.c b/src/alloc.c index bcec8ea4560..3e2b6649e96 100644 --- a/src/alloc.c +++ b/src/alloc.c @@ -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 */