diff options
| author | Lioncash <mathew1800@gmail.com> | 2015-02-13 20:22:01 -0500 |
|---|---|---|
| committer | Lioncash <mathew1800@gmail.com> | 2015-02-13 20:22:01 -0500 |
| commit | 6558704403aef17e89e44c22f111629ac214323f (patch) | |
| tree | 6e814f76978384fc6afe019a59f874a2c36119c2 /Source/Core/DolphinWX/InputConfigDiag.cpp | |
| parent | 4d3c1c7ec347d7dc6b8786be7f1b7c7effbd2d44 (diff) | |
| parent | 9a6b6a99e8bf4927963c15c9073f34c28bc8f20d (diff) | |
Merge pull request #2030 from lioncash/destroy
DolphinWX: Get rid of unnecessary Destroy calls
Diffstat (limited to 'Source/Core/DolphinWX/InputConfigDiag.cpp')
| -rw-r--r-- | Source/Core/DolphinWX/InputConfigDiag.cpp | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/Source/Core/DolphinWX/InputConfigDiag.cpp b/Source/Core/DolphinWX/InputConfigDiag.cpp index f2e07a49a2..653f92ea11 100644 --- a/Source/Core/DolphinWX/InputConfigDiag.cpp +++ b/Source/Core/DolphinWX/InputConfigDiag.cpp @@ -1079,13 +1079,7 @@ InputConfigDialog::InputConfigDialog(wxWindow* const parent, InputConfig& config Center(); // live preview update timer - m_update_timer = new wxTimer(this); + m_update_timer.SetOwner(this); Bind(wxEVT_TIMER, &InputConfigDialog::UpdateBitmaps, this); - m_update_timer->Start(PREVIEW_UPDATE_TIME, wxTIMER_CONTINUOUS); -} - -bool InputConfigDialog::Destroy() -{ - m_update_timer->Stop(); - return true; + m_update_timer.Start(PREVIEW_UPDATE_TIME, wxTIMER_CONTINUOUS); } |
