mirror of
https://github.com/WinampDesktop/winamp.git
synced 2025-06-18 18:35:45 -04:00
CommonHostInterface: Prevent some potential null pointer dereferences
This commit is contained in:
@ -484,6 +484,9 @@ void QtHostInterface::connectDisplaySignals(QtDisplayWidget* widget)
|
||||
|
||||
void QtHostInterface::updateDisplayState()
|
||||
{
|
||||
if (!m_display)
|
||||
return;
|
||||
|
||||
// this expects the context to get moved back to us afterwards
|
||||
m_display->DoneRenderContextCurrent();
|
||||
|
||||
|
Reference in New Issue
Block a user