diff options
author | Andreas Schwab <schwab@suse.de> | 2007-09-16 09:25:45 +0000 |
---|---|---|
committer | Andreas Schwab <schwab@suse.de> | 2007-09-16 09:25:45 +0000 |
commit | 4d580af2d7dd70d97073bf91da4f3f4d9f10bafc (patch) | |
tree | d1c05896fd25651b24cac026ee28772d64ebee0f /src/alloc.c | |
parent | 448f754fa83af6490f9e72be19f9fbae9b06f5e7 (diff) | |
download | emacs-4d580af2d7dd70d97073bf91da4f3f4d9f10bafc.tar.gz |
(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 8aea81a0f72..f1758158344 100644 --- a/src/alloc.c +++ b/src/alloc.c @@ -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 */ |