Commit e9a29249 authored by Rémi Bernon's avatar Rémi Bernon Committed by Alexandre Julliard

mfplat: Release queue subscriber on Shutdown.

parent 3d6669cc
...@@ -7006,6 +7006,13 @@ static IMFMediaEvent *queue_pop_event(struct event_queue *queue) ...@@ -7006,6 +7006,13 @@ static IMFMediaEvent *queue_pop_event(struct event_queue *queue)
return event; return event;
} }
static void event_queue_clear_subscriber(struct event_queue *queue)
{
if (queue->subscriber)
IRtwqAsyncResult_Release(queue->subscriber);
queue->subscriber = NULL;
}
static void event_queue_cleanup(struct event_queue *queue) static void event_queue_cleanup(struct event_queue *queue)
{ {
IMFMediaEvent *event; IMFMediaEvent *event;
...@@ -7258,6 +7265,7 @@ static HRESULT WINAPI eventqueue_Shutdown(IMFMediaEventQueue *iface) ...@@ -7258,6 +7265,7 @@ static HRESULT WINAPI eventqueue_Shutdown(IMFMediaEventQueue *iface)
if (!queue->is_shut_down) if (!queue->is_shut_down)
{ {
event_queue_cleanup(queue); event_queue_cleanup(queue);
event_queue_clear_subscriber(queue);
queue->is_shut_down = TRUE; queue->is_shut_down = TRUE;
} }
......
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