소스 검색

bugfix in test unit clean up

Alexander Freytag 11 년 전
부모
커밋
9fea619212
2개의 변경된 파일8개의 추가작업 그리고 8개의 파일을 삭제
  1. 4 4
      features/localfeatures/tests/TestGenericLFSelectionPersistent.cpp
  2. 4 4
      features/localfeatures/tests/TestLFonHSGPersistent.cpp

+ 4 - 4
features/localfeatures/tests/TestGenericLFSelectionPersistent.cpp

@@ -76,11 +76,11 @@ void TestGenericLFSelectionPersistent::testPersistentMethods()
   // However, if we reached this point, at least something went right, so we should be happy...
   
   // final clean up -- don't waste memory
-  if ( lf != NULL )
-    delete lf;
+  if ( lfrep != NULL )
+    delete lfrep;
     
-  if ( lfRestore != NULL )
-    delete lfRestore;  
+  if ( lfrepRestore != NULL )
+    delete lfrepRestore;  
   
     
   if (verboseStartEnd)

+ 4 - 4
features/localfeatures/tests/TestLFonHSGPersistent.cpp

@@ -79,11 +79,11 @@ void TestLFonHSGPersistent::testPersistentMethodsForLFonHSG()
   // However, if we reached this point, at least something went right, so we should be happy...
   
   // final clean up -- don't waste memory
-  if ( lf != NULL )
-    delete lf;
+  if ( lfrep != NULL )
+    delete lfrep;
     
-  if ( lfRestore != NULL )
-    delete lfRestore;  
+  if ( lfrepRestore != NULL )
+    delete lfrepRestore;  
   
     
   if (verboseStartEnd)