1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-11-27 07:37:33 +00:00

(reset_malloc_hooks): Set the hooks to the previous

values instead of zapping them.
This commit is contained in:
Andreas Schwab 2007-09-16 09:25:45 +00:00
parent 448f754fa8
commit 4d580af2d7
2 changed files with 8 additions and 3 deletions

View File

@ -1,3 +1,8 @@
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.

View File

@ -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 */