Parcourir la source

closed memory leak

Sven Sickert il y a 10 ans
Parent
commit
43650c90b5
1 fichiers modifiés avec 2 ajouts et 1 suppressions
  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;
 }