values instead of zapping them.
+2007-09-16 Andreas Schwab <schwab@suse.de>
+
+ * alloc.c (reset_malloc_hooks): Set the hooks to the previous
+ values instead of zapping them.
+
2007-09-14 Glenn Morris <rgm@gnu.org>
* fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
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 */