mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-30 06:06:18 +00:00
DolphinWX: Clean up some wxTimer code
Technically fixes a memory leak (which wouldn't matter because the timer is only created once and destroyed on shutdown). Also starting and stopping the timer does not cause leaks.
This commit is contained in:
parent
4fd980e6d4
commit
4cc19ac926
4 changed files with 13 additions and 23 deletions
|
@ -18,6 +18,7 @@
|
|||
#include <wx/mstream.h>
|
||||
#include <wx/panel.h>
|
||||
#include <wx/string.h>
|
||||
#include <wx/timer.h>
|
||||
#include <wx/toplevel.h>
|
||||
#include <wx/windowid.h>
|
||||
|
||||
|
@ -47,8 +48,6 @@ class wxAuiNotebook;
|
|||
class wxAuiNotebookEvent;
|
||||
class wxListEvent;
|
||||
class wxMenuItem;
|
||||
class wxTimer;
|
||||
class wxTimerEvent;
|
||||
class wxWindow;
|
||||
|
||||
class CRenderFrame : public wxFrame
|
||||
|
@ -198,7 +197,7 @@ private:
|
|||
EToolbar_Max
|
||||
};
|
||||
|
||||
wxTimer* m_poll_hotkey_timer;
|
||||
wxTimer m_poll_hotkey_timer;
|
||||
|
||||
wxBitmap m_Bitmaps[EToolbar_Max];
|
||||
wxBitmap m_BitmapsMenu[EToolbar_Max];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue