Browse Source

memory leak fix

Johannes Ruehle 11 years ago
parent
commit
8bf99dcb02
1 changed files with 5 additions and 0 deletions
  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)