Commit 4d580af2 authored by Andreas Schwab's avatar Andreas Schwab
Browse files

(reset_malloc_hooks): Set the hooks to the previous

values instead of zapping them.
parent 448f754f
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.
......
......@@ -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 */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment