Browse Source

memory leak fix

Johannes Ruehle 11 năm trước cách đây
mục cha
commit
8bf99dcb02
1 tập tin đã thay đổi với 5 bổ sung0 xóa
  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)