Commit c376b1bf authored by Rob Shearman's avatar Rob Shearman Committed by Alexandre Julliard

qmgr: Fix a memory leak.

parent d9749226
......@@ -157,7 +157,14 @@ DWORD WINAPI fileTransfer(void *param)
/* Check if it's the stop_event */
if (WaitForMultipleObjects(2, events, FALSE, INFINITE) == WAIT_OBJECT_0)
{
LIST_FOR_EACH_ENTRY_SAFE(job, jobCur, &qmgr->jobs, BackgroundCopyJobImpl, entryFromQmgr)
{
list_remove(&job->entryFromQmgr);
IBackgroundCopyJob_Release((IBackgroundCopyJob *) job);
}
return 0;
}
/* Note that other threads may add files to the job list, but only
this thread ever deletes them so we don't need to worry about jobs
......
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