Advertisement
asavah

kodi-popcornmix-exit-crash.patch

May 29th, 2017
194
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.81 KB | None | 0 0
  1. diff --git a/xbmc/guilib/GUIWindowManager.cpp b/xbmc/guilib/GUIWindowManager.cpp
  2. index f426daf34d..cac2445dda 100644
  3. --- a/xbmc/guilib/GUIWindowManager.cpp
  4. +++ b/xbmc/guilib/GUIWindowManager.cpp
  5. @@ -1250,13 +1250,15 @@ void CGUIWindowManager::DeInitialize()
  6. for (const auto& entry : m_mapWindows)
  7. {
  8. CGUIWindow* pWindow = entry.second;
  9. - if (IsWindowActive(entry.first, false))
  10. - {
  11. - pWindow->DisableAnimations();
  12. - pWindow->Close(true);
  13. + if (pWindow) {
  14. + if (IsWindowActive(entry.first, false))
  15. + {
  16. + pWindow->DisableAnimations();
  17. + pWindow->Close(true);
  18. + }
  19. + pWindow->ResetControlStates();
  20. + pWindow->FreeResources(true);
  21. }
  22. - pWindow->ResetControlStates();
  23. - pWindow->FreeResources(true);
  24. }
  25. UnloadNotOnDemandWindows();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement