summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinWX/Frame.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Core/DolphinWX/Frame.cpp')
-rw-r--r--Source/Core/DolphinWX/Frame.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/Core/DolphinWX/Frame.cpp b/Source/Core/DolphinWX/Frame.cpp
index 3a0712f495..8c5b2c247d 100644
--- a/Source/Core/DolphinWX/Frame.cpp
+++ b/Source/Core/DolphinWX/Frame.cpp
@@ -577,7 +577,8 @@ void CFrame::OnClose(wxCloseEvent& event)
else
{
// Close the log window now so that its settings are saved
- m_LogWindow->Close();
+ if (m_LogWindow)
+ m_LogWindow->Close();
m_LogWindow = nullptr;
}