Skip to content

Commit

Permalink
X11: fix segfault is GUI fails to create
Browse files Browse the repository at this point in the history
  • Loading branch information
FernetMenta committed Nov 18, 2018
1 parent f01060f commit 6298bbb
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions xbmc/windowing/X11/WinSystemX11GLContext.cpp
Expand Up @@ -211,13 +211,15 @@ bool CWinSystemX11GLContext::SetFullScreen(bool fullScreen, RESOLUTION_INFO& res

bool CWinSystemX11GLContext::DestroyWindowSystem()
{
m_pGLContext->Destroy();
if (m_pGLContext)
m_pGLContext->Destroy();
return CWinSystemX11::DestroyWindowSystem();
}

bool CWinSystemX11GLContext::DestroyWindow()
{
m_pGLContext->Detach();
if (m_pGLContext)
m_pGLContext->Detach();
return CWinSystemX11::DestroyWindow();
}

Expand Down

0 comments on commit 6298bbb

Please sign in to comment.