소스 검색

memory leak fix

Johannes Ruehle 11 년 전
부모
커밋
8bf99dcb02
1개의 변경된 파일5개의 추가작업 그리고 0개의 파일을 삭제
  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)