Skip to content

Commit

Permalink
Delete QTimer also on widget destruction, not only on Entry destruction
Browse files Browse the repository at this point in the history
  • Loading branch information
phoerious committed Jan 22, 2018
1 parent 2360ce3 commit 252a218
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/gui/DetailsWidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,9 @@ DetailsWidget::DetailsWidget(QWidget* parent)

DetailsWidget::~DetailsWidget()
{
if (m_timer) {
delete m_timer;
}
}

void DetailsWidget::getSelectedEntry(Entry* selectedEntry)
Expand Down
3 changes: 3 additions & 0 deletions src/gui/TotpDialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -92,4 +92,7 @@ double TotpDialog::resetCounter()

TotpDialog::~TotpDialog()
{
if (m_totpUpdateTimer) {
delete m_totpUpdateTimer;
}
}

0 comments on commit 252a218

Please sign in to comment.