--- automation/source/testtool/objtest.cxx.old	2007-01-03 21:58:52.000000000 +0100
+++ automation/source/testtool/objtest.cxx	2007-01-04 15:56:33.000000000 +0100
@@ -873,9 +873,8 @@
 	if ( pImpl->pTTSfxBroadcaster )
     	delete pImpl->pTTSfxBroadcaster;
 	delete pShortNames;
+	delete pImpl->pChildEnv;
 	delete pImpl;
-
-    delete pImpl->pChildEnv;
 }
 
 SfxBroadcaster& TestToolObj::GetTTBroadcaster()
