Mercurial > emacs
changeset 78811:6ebdc9c66c94
(reset_malloc_hooks): Set the hooks to the previous
values instead of zapping them.
author | Andreas Schwab <schwab@suse.de> |
---|---|
date | Sun, 16 Sep 2007 09:40:45 +0000 |
parents | fef9f4017de1 |
children | dfb375e20bcc |
files | src/alloc.c |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/alloc.c Sun Sep 16 09:34:52 2007 +0000 +++ b/src/alloc.c Sun Sep 16 09:40:45 2007 +0000 @@ -1342,9 +1342,9 @@ 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 */