summaryrefslogtreecommitdiff
path: root/src/msvc6/testpluginrunner/TestPlugIn.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/msvc6/testpluginrunner/TestPlugIn.cpp')
-rw-r--r--src/msvc6/testpluginrunner/TestPlugIn.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/msvc6/testpluginrunner/TestPlugIn.cpp b/src/msvc6/testpluginrunner/TestPlugIn.cpp
index 7fd0574..2612220 100644
--- a/src/msvc6/testpluginrunner/TestPlugIn.cpp
+++ b/src/msvc6/testpluginrunner/TestPlugIn.cpp
@@ -11,6 +11,13 @@
#include <cppunit/extensions/TestFactoryRegistry.h>
#include "TestPlugInException.h"
+#ifdef _DEBUG
+#define new DEBUG_NEW
+#undef THIS_FILE
+static char THIS_FILE[] = __FILE__;
+#endif
+
+
TestPlugIn::TestPlugIn( const std::string fileName ) :
m_fileName( fileName )
@@ -28,6 +35,7 @@ TestPlugIn::~TestPlugIn()
void
TestPlugIn::deleteDllCopy()
{
+ m_manager.unload( m_copyFileName );
::DeleteFile( m_copyFileName.c_str() );
}