[Freeswitch-svn] [commit] r4016 - freeswitch/trunk/src
Freeswitch SVN
mikej at freeswitch.org
Mon Jan 22 12:16:25 EST 2007
Author: mikej
Date: Mon Jan 22 12:16:25 2007
New Revision: 4016
Modified:
freeswitch/trunk/src/switch_core.c
Log:
rearrange a bit
Modified: freeswitch/trunk/src/switch_core.c
==============================================================================
--- freeswitch/trunk/src/switch_core.c (original)
+++ freeswitch/trunk/src/switch_core.c Mon Jan 22 12:16:25 2007
@@ -4237,13 +4237,6 @@
switch_yield(1000000);
- if (runtime.memory_pool) {
- apr_pool_destroy(runtime.memory_pool);
- if (!vg) {
- apr_terminate();
- }
- }
-
#ifdef WIN32
free(SWITCH_GLOBAL_dirs.base_dir);
free(SWITCH_GLOBAL_dirs.mod_dir);
@@ -4256,6 +4249,13 @@
free(SWITCH_GLOBAL_dirs.temp_dir);
#endif
+ if (runtime.memory_pool) {
+ apr_pool_destroy(runtime.memory_pool);
+ if (!vg) {
+ apr_terminate();
+ }
+ }
+
return SWITCH_STATUS_SUCCESS;
}
More information about the Freeswitch-svn
mailing list