wineqtdecoder: Fix handle leak.

This commit is contained in:
Pierre Schweitzer 2011-12-30 21:55:06 +01:00 committed by Alexandre Julliard
parent ae8f62940e
commit 25ea822f27
1 changed files with 9 additions and 2 deletions

View File

@ -892,6 +892,7 @@ static HRESULT QT_Process_Movie(QTSplitter* filter)
Track trk;
short id = 0;
DWORD tid;
HANDLE thread;
TRACE("Trying movie connect\n");
@ -930,8 +931,14 @@ static HRESULT QT_Process_Movie(QTSplitter* filter)
if (trk)
hr = QT_Process_Audio_Track(filter, trk);
CreateThread(NULL, 0, QTSplitter_thread, filter, 0, &tid);
TRACE("Created thread 0x%08x\n",tid);
thread = CreateThread(NULL, 0, QTSplitter_thread, filter, 0, &tid);
if (thread)
{
TRACE("Created thread 0x%08x\n", tid);
CloseHandle(thread);
}
else
hr = HRESULT_FROM_WIN32(GetLastError());
return hr;
}