From 8ec477d5f39aaf4afca7d7040e7cb3ec074064d8 Mon Sep 17 00:00:00 2001 From: mturk Date: Thu, 7 Aug 2008 06:35:36 +0000 Subject: Use default pool cleanup order for reslist create. Revert r677505 and r677523. git-svn-id: http://svn.apache.org/repos/asf/apr/apr-util/trunk@683524 13f79535-47bb-0310-9956-ffa450edef68 --- misc/apr_reslist.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/misc/apr_reslist.c b/misc/apr_reslist.c index ef452838..3b6d630a 100644 --- a/misc/apr_reslist.c +++ b/misc/apr_reslist.c @@ -310,14 +310,8 @@ APU_DECLARE(apr_status_t) apr_reslist_create(apr_reslist_t **reslist, return rv; } - /* Register a pool pre_cleanup. - * This will ensure that reslist_cleanup is run BEFORE - * any of the eventual child pools of this pool. - * If an child pool was created inside apr_reslist_destructor, - * this child pool can safely call apr_pool_destroy inside - * apr_reslist_destructor thus safely detaching himself. - */ - apr_pool_pre_cleanup_register(rl->pool, rl, reslist_cleanup); + apr_pool_cleanup_register(rl->pool, rl, reslist_cleanup, + apr_pool_cleanup_null); *reslist = rl; -- cgit v1.2.1