فهرست منبع

closed memory leak

Sven Sickert 10 سال پیش
والد
کامیت
43650c90b5
1فایلهای تغییر یافته به همراه2 افزوده شده و 1 حذف شده
  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;
 }