diff --git a/app/streaming/session.cpp b/app/streaming/session.cpp index 8e12a647..60f051a2 100644 --- a/app/streaming/session.cpp +++ b/app/streaming/session.cpp @@ -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);