Move LogWindow/LogConfigWindow destructor logic -> OnClose

Fixes the issue on macOS where quitting Dolphin from the Dock causes a
crash report (https://bugs.dolphin-emu.org/issues/9794). I'm not
exactly sure why this works, but it feels right and it turns out to fix
the problem.
This commit is contained in:
Michael Maltese
2016-09-20 18:19:33 -07:00
parent 58d0e22354
commit d1475dfb9c
4 changed files with 14 additions and 11 deletions

View File

@ -28,7 +28,6 @@ public:
CLogWindow(CFrame* parent, wxWindowID id = wxID_ANY, const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, long style = wxTAB_TRAVERSAL,
const wxString& name = _("Log"));
~CLogWindow();
void SaveSettings();
void Log(LogTypes::LOG_LEVELS, const char* text) override;
@ -63,5 +62,6 @@ private:
void OnWrapLineCheck(wxCommandEvent& event);
void OnClear(wxCommandEvent& event);
void OnLogTimer(wxTimerEvent& WXUNUSED(event));
void RemoveAllListeners();
void UpdateLog();
};