Commit bea37208 authored by Bernhard Kölbl's avatar Bernhard Kölbl Committed by Alexandre Julliard

mf: Clear queued topologies on session shutdown.

Programs might expect objects inside the queued toplogy to be freed, before they eventually call release on the session itself. This fixes reference leaks to stored objects in queued topology nodes, even when IMFMediaSession_Shutdown() was called. Signed-off-by: 's avatarBernhard Kölbl <besentv@gmail.com>
parent c43a4aee
......@@ -2225,6 +2225,7 @@ static HRESULT WINAPI mfsession_Shutdown(IMFMediaSession *iface)
IMFPresentationClock_Release(session->clock);
session->clock = NULL;
session_clear_presentation(session);
session_clear_queued_topologies(session);
session_submit_simple_command(session, SESSION_CMD_SHUTDOWN);
}
LeaveCriticalSection(&session->cs);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment