Fix accidental removal of decoder deletion in previous commit

This commit is contained in:
Cameron Gutman
2018-10-31 18:49:37 -07:00
parent cb5e58d465
commit e1fab22d98

View File

@@ -270,6 +270,8 @@ int Session::getDecoderCapabilities(StreamingPreferences::VideoDecoderSelection
int caps = decoder->getDecoderCapabilities();
delete decoder;
// This must be called after the decoder is deleted, because
// the renderer may want to interact with the window
SDL_DestroyWindow(window);