mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-09-09 11:05:56 +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
|
@ -14,6 +14,7 @@
|
|||
#include <wx/gdicmn.h>
|
||||
#include <wx/panel.h>
|
||||
#include <wx/string.h>
|
||||
#include <wx/timer.h>
|
||||
#include <wx/translation.h>
|
||||
#include <wx/windowid.h>
|
||||
|
||||
|
@ -25,8 +26,6 @@ class wxBoxSizer;
|
|||
class wxCheckBox;
|
||||
class wxChoice;
|
||||
class wxTextCtrl;
|
||||
class wxTimer;
|
||||
class wxTimerEvent;
|
||||
|
||||
// Uses multiple inheritance - only sane because LogListener is a pure virtual interface.
|
||||
class CLogWindow : public wxPanel, LogListener
|
||||
|
@ -50,8 +49,7 @@ private:
|
|||
CFrame* Parent;
|
||||
wxFont DefaultFont, MonoSpaceFont;
|
||||
std::vector<wxFont> LogFont;
|
||||
wxTimer* m_LogTimer;
|
||||
bool m_ignoreLogTimer;
|
||||
wxTimer m_LogTimer;
|
||||
LogManager* m_LogManager;
|
||||
std::queue<std::pair<u8, wxString> > msgQueue;
|
||||
bool m_writeFile, m_writeWindow, m_writeDebugger, m_LogAccess;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue