diff options
| author | skidau <skidau@gmail.com> | 2015-03-01 15:13:53 +1100 |
|---|---|---|
| committer | skidau <skidau@gmail.com> | 2015-03-01 15:13:53 +1100 |
| commit | 081adc92c0ea69e42374d33ed3c3f91d82be9f27 (patch) | |
| tree | e3c88bdcebc1fd86df1d58360e8a0cb2d88b6e25 /Source/Core/DolphinWX/Frame.cpp | |
| parent | 4fd980e6d48fc15d31121878eb61e4b331c1c4bd (diff) | |
| parent | 4cc19ac926c13281c85612e539c660b86eb1ac34 (diff) | |
Merge pull request #2152 from lioncash/timer
DolphinWX: Clean up some wxTimer code
Diffstat (limited to 'Source/Core/DolphinWX/Frame.cpp')
| -rw-r--r-- | Source/Core/DolphinWX/Frame.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/Source/Core/DolphinWX/Frame.cpp b/Source/Core/DolphinWX/Frame.cpp index f84d44ebf2..946cd52da3 100644 --- a/Source/Core/DolphinWX/Frame.cpp +++ b/Source/Core/DolphinWX/Frame.cpp @@ -508,15 +508,13 @@ CFrame::CFrame(wxFrame* parent, // check if game is running m_bHotkeysInit = InitControllers(); - m_poll_hotkey_timer = new wxTimer(this); + m_poll_hotkey_timer.SetOwner(this); Bind(wxEVT_TIMER, &CFrame::PollHotkeys, this); - m_poll_hotkey_timer->Start(1000 / 60, wxTIMER_CONTINUOUS); + m_poll_hotkey_timer.Start(1000 / 60, wxTIMER_CONTINUOUS); } // Destructor CFrame::~CFrame() { - m_poll_hotkey_timer->Stop(); - if (m_bHotkeysInit) { Wiimote::Shutdown(); |
