mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-01 09:23:38 +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);
|
||||
}
|
||||
CloseHandle(filter->file);
|
||||
filter->sample_cs.DebugInfo->Spare[0] = 0;
|
||||
DeleteCriticalSection(&filter->sample_cs);
|
||||
strmbase_source_cleanup(&filter->source);
|
||||
|
||||
free(filter->pszFileName);
|
||||
FreeMediaType(&filter->mt);
|
||||
}
|
||||
|
||||
filter->sample_cs.DebugInfo->Spare[0] = 0;
|
||||
DeleteCriticalSection(&filter->sample_cs);
|
||||
|
||||
PostQueuedCompletionStatus(filter->port, 0, 1, NULL);
|
||||
WaitForSingleObject(filter->io_thread, INFINITE);
|
||||
CloseHandle(filter->io_thread);
|
||||
|
|
|
@ -486,8 +486,9 @@ static ULONG WINAPI FilterGraphInner_Release(IUnknown *iface)
|
|||
}
|
||||
LeaveCriticalSection(&message_cs);
|
||||
|
||||
This->cs.DebugInfo->Spare[0] = 0;
|
||||
This->event_cs.DebugInfo->Spare[0] = 0;
|
||||
DeleteCriticalSection(&This->event_cs);
|
||||
This->cs.DebugInfo->Spare[0] = 0;
|
||||
DeleteCriticalSection(&This->cs);
|
||||
free(This);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue