Skip to content

Commit

Permalink
Fixed improper resource deallocation of progress widget
Browse files Browse the repository at this point in the history
  • Loading branch information
afrimberger committed Sep 17, 2012
1 parent cf3b7c5 commit da61b9f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion partwin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ PartWin::PartWin(QWidget *parent)
m_progressWidget = new ProgressWidget(this->parentWidget());
setCentralWidget(m_progressWidget);

m_progressWidget->setAttribute(Qt::WA_DeleteOnClose);
m_guiInitialized = true;
}

Expand Down Expand Up @@ -127,7 +128,6 @@ PartWin::~PartWin()
m_tmpFile->remove();

delete m_tmpFile;
delete m_progressWidget;
delete m_part;
delete m_printAction;
}
Expand Down

0 comments on commit da61b9f

Please sign in to comment.