Fixed mismatching allocation and deallocation: el_ptr
authorNghia Ho <nghiaho12@yahoo.com>
Wed, 14 Aug 2013 13:36:29 +0000 (23:36 +1000)
committerNghia Ho <nghiaho12@yahoo.com>
Wed, 14 Aug 2013 13:36:29 +0000 (23:36 +1000)
samples/c/mushroom.cpp

index 5763b12..60eb9f0 100644 (file)
@@ -90,7 +90,7 @@ static int mushroom_read_database( const char* filename, CvMat** data, CvMat** m
     }
 
     cvReleaseMemStorage( &storage );
-    delete el_ptr;
+    delete [] el_ptr;
     return 1;
 }