Explorar o código

memory leak fix

Johannes Ruehle %!s(int64=11) %!d(string=hai) anos
pai
achega
8bf99dcb02
Modificáronse 1 ficheiros con 5 adicións e 0 borrados
  1. 5 0
      baselib/ProgressBarQt.cpp

+ 5 - 0
baselib/ProgressBarQt.cpp

@@ -54,6 +54,11 @@ ProgressBarQt::ProgressBarQt ( const std::string & _name, bool _useGraphics )
 
 ProgressBarQt::~ProgressBarQt()
 {
+    if( this->dialogwindow != NULL)
+    {
+        delete this->dialogwindow;
+        this->dialogwindow = NULL;
+    }
 }
 
 void ProgressBarQt::timediff2str(char *text, double dtime)