Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fix destroyMainWindow when gCoreContext is not created yet

Fixes #10718
  • Loading branch information...
commit 922a9caa85a82d09958466fe7c1ac8509e33a421 1 parent 7f18de0
Gavin Hurlbut Beirdo authored

Showing 1 changed file with 2 additions and 1 deletion. Show diff stats Hide diff stats

  1. +2 1  mythtv/libs/libmythui/mythmainwindow.cpp
3  mythtv/libs/libmythui/mythmainwindow.cpp
@@ -342,7 +342,8 @@ MythMainWindow *MythMainWindow::getMainWindow(const bool useDB)
342 342
343 343 void MythMainWindow::destroyMainWindow(void)
344 344 {
345   - gCoreContext->SetGUIObject(NULL);
  345 + if (gCoreContext)
  346 + gCoreContext->SetGUIObject(NULL);
346 347 delete mainWin;
347 348 mainWin = NULL;
348 349 }

0 comments on commit 922a9ca

Please sign in to comment.
Something went wrong with that request. Please try again.