(reset_malloc_hooks): Set the hooks to the previous
values instead of zapping them.
This commit is contained in:
parent
448f754fa8
commit
4d580af2d7
2 changed files with 8 additions and 3 deletions
|
@ -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…
Add table
Reference in a new issue