mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-24 14:49:42 -06: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:
@ -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];
|
||||
|
Reference in New Issue
Block a user