mirror of
https://github.com/moonlight-stream/moonlight-qt
synced 2024-11-10 13:44:17 +00:00
Fix surface leak if SDLVideo_CreateOverlay() fails
This commit is contained in:
parent
f8a6012c3a
commit
e9edad6f8c
1 changed files with 1 additions and 0 deletions
|
@ -193,6 +193,7 @@ void SLVideoDecoder::notifyOverlayUpdated(Overlay::OverlayType type)
|
|||
if (m_Overlay == nullptr) {
|
||||
SDL_LogError(SDL_LOG_CATEGORY_APPLICATION,
|
||||
"SLVideo_CreateOverlay() failed");
|
||||
SDL_FreeSurface(newSurface);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue