diff options
author | Andreas Schwab <schwab@suse.de> | 2007-09-16 09:40:45 +0000 |
---|---|---|
committer | Andreas Schwab <schwab@suse.de> | 2007-09-16 09:40:45 +0000 |
commit | 480ecb6b5ce579af4008d4556bc71fa08098aa94 (patch) | |
tree | b520517dec33b6fd9d4b87f8ad35e21bf1b2e6a1 /src/alloc.c | |
parent | d51e0fc41a8f8aa9cac923d52bc0ea3921d010f9 (diff) | |
download | emacs-480ecb6b5ce579af4008d4556bc71fa08098aa94.tar.gz emacs-480ecb6b5ce579af4008d4556bc71fa08098aa94.tar.bz2 emacs-480ecb6b5ce579af4008d4556bc71fa08098aa94.zip |
(reset_malloc_hooks): Set the hooks to the previous
values instead of zapping them.
Diffstat (limited to 'src/alloc.c')
-rw-r--r-- | src/alloc.c | 6 |
1 files changed, 3 insertions, 3 deletions
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 */ |