changeset 84602:afb5f262aced

(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:25:37 +0000
parents c38a9291ef0a
children 4946accc315a
files src/alloc.c
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/alloc.c	Sun Sep 16 05:16:42 2007 +0000
+++ b/src/alloc.c	Sun Sep 16 09:25:37 2007 +0000
@@ -1343,9 +1343,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 */