libfreerdp-codec/rfx: fix a memory leak.

This commit is contained in:
Vic Lee 2013-06-20 12:10:01 +08:00
parent 729efc7d57
commit 6551815991
1 changed files with 3 additions and 0 deletions

View File

@ -741,7 +741,10 @@ static BOOL rfx_process_message_tileset(RFX_CONTEXT* context, RFX_MESSAGE* messa
if (context->priv->UseThreads)
{
for (i = 0; i < message->num_tiles; i++)
{
WaitForThreadpoolWorkCallbacks(work_objects[i], FALSE);
CloseThreadpoolWork(work_objects[i]);
}
free(work_objects);
free(params);