Sfoglia il codice sorgente

closed memory leak

Sven Sickert 10 anni fa
parent
commit
43650c90b5
1 ha cambiato i file con 2 aggiunte e 1 eliminazioni
  1. 2 1
      features/fpfeatures/ConvolutionFeature.cpp

+ 2 - 1
features/fpfeatures/ConvolutionFeature.cpp

@@ -80,7 +80,8 @@ ConvolutionFeature::ConvolutionFeature ( const ConvolutionFeature *confFeat )
 /** simple destructor */
 ConvolutionFeature::~ConvolutionFeature ( )
 {
-
+    if ( params != NULL)
+        delete params;
 }