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; }