You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4cxx-dev@logging.apache.org by ca...@apache.org on 2008/02/20 06:28:16 UTC
svn commit: r629365 - /logging/log4cxx/trunk/src/main/cpp/aprinitializer.cpp
Author: carnold
Date: Tue Feb 19 21:28:14 2008
New Revision: 629365
URL: http://svn.apache.org/viewvc?rev=629365&view=rev
Log:
LOGCXX-214: Memory leak when using shared APR
Modified:
logging/log4cxx/trunk/src/main/cpp/aprinitializer.cpp
Modified: logging/log4cxx/trunk/src/main/cpp/aprinitializer.cpp
URL: http://svn.apache.org/viewvc/logging/log4cxx/trunk/src/main/cpp/aprinitializer.cpp?rev=629365&r1=629364&r2=629365&view=diff
==============================================================================
--- logging/log4cxx/trunk/src/main/cpp/aprinitializer.cpp (original)
+++ logging/log4cxx/trunk/src/main/cpp/aprinitializer.cpp Tue Feb 19 21:28:14 2008
@@ -42,14 +42,7 @@
}
APRInitializer::~APRInitializer() {
-//
-// If we are using a static APR then
-// we need to clean up after ourselves
-// otherwise the main executable should terminate APR
-//
-#if defined(APR_DECLARE_STATIC) && !defined(LOG4CXX_DECLARE_STATIC)
apr_terminate();
-#endif
isDestructed = true;
}