Explorar o código

closed memory leak

Sven Sickert %!s(int64=10) %!d(string=hai) anos
pai
achega
43650c90b5
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  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;
 }