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:
parent
448f754fa8
commit
4d580af2d7
@ -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.
|
||||
|
@ -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 */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user