mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-01 09:33:37 +00:00
quartz: Fix some critical section leaks (Valgrind).
This commit is contained in:
parent
f03ae651e6
commit
c5ca3b0011
|
@ -333,14 +333,15 @@ static void async_reader_destroy(struct strmbase_filter *iface)
|
||||||
free(filter->requests);
|
free(filter->requests);
|
||||||
}
|
}
|
||||||
CloseHandle(filter->file);
|
CloseHandle(filter->file);
|
||||||
filter->sample_cs.DebugInfo->Spare[0] = 0;
|
|
||||||
DeleteCriticalSection(&filter->sample_cs);
|
|
||||||
strmbase_source_cleanup(&filter->source);
|
strmbase_source_cleanup(&filter->source);
|
||||||
|
|
||||||
free(filter->pszFileName);
|
free(filter->pszFileName);
|
||||||
FreeMediaType(&filter->mt);
|
FreeMediaType(&filter->mt);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
filter->sample_cs.DebugInfo->Spare[0] = 0;
|
||||||
|
DeleteCriticalSection(&filter->sample_cs);
|
||||||
|
|
||||||
PostQueuedCompletionStatus(filter->port, 0, 1, NULL);
|
PostQueuedCompletionStatus(filter->port, 0, 1, NULL);
|
||||||
WaitForSingleObject(filter->io_thread, INFINITE);
|
WaitForSingleObject(filter->io_thread, INFINITE);
|
||||||
CloseHandle(filter->io_thread);
|
CloseHandle(filter->io_thread);
|
||||||
|
|
|
@ -486,8 +486,9 @@ static ULONG WINAPI FilterGraphInner_Release(IUnknown *iface)
|
||||||
}
|
}
|
||||||
LeaveCriticalSection(&message_cs);
|
LeaveCriticalSection(&message_cs);
|
||||||
|
|
||||||
This->cs.DebugInfo->Spare[0] = 0;
|
This->event_cs.DebugInfo->Spare[0] = 0;
|
||||||
DeleteCriticalSection(&This->event_cs);
|
DeleteCriticalSection(&This->event_cs);
|
||||||
|
This->cs.DebugInfo->Spare[0] = 0;
|
||||||
DeleteCriticalSection(&This->cs);
|
DeleteCriticalSection(&This->cs);
|
||||||
free(This);
|
free(This);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue