Mercurial > emacs
comparison src/alloc.c @ 84602:afb5f262aced
(reset_malloc_hooks): Set the hooks to the previous
values instead of zapping them.
author | Andreas Schwab <schwab@suse.de> |
---|---|
date | Sun, 16 Sep 2007 09:25:37 +0000 |
parents | 2a69b973fae2 |
children | 7ee574475f20 |
comparison
equal
deleted
inserted
replaced
84601:c38a9291ef0a | 84602:afb5f262aced |
---|---|
1341 calls malloc because it is the first call, and we have an endless loop. */ | 1341 calls malloc because it is the first call, and we have an endless loop. */ |
1342 | 1342 |
1343 void | 1343 void |
1344 reset_malloc_hooks () | 1344 reset_malloc_hooks () |
1345 { | 1345 { |
1346 __free_hook = 0; | 1346 __free_hook = old_free_hook; |
1347 __malloc_hook = 0; | 1347 __malloc_hook = old_malloc_hook; |
1348 __realloc_hook = 0; | 1348 __realloc_hook = old_realloc_hook; |
1349 } | 1349 } |
1350 #endif /* HAVE_GTK_AND_PTHREAD */ | 1350 #endif /* HAVE_GTK_AND_PTHREAD */ |
1351 | 1351 |
1352 | 1352 |
1353 /* Called from main to set up malloc to use our hooks. */ | 1353 /* Called from main to set up malloc to use our hooks. */ |