From 6551815991d3e49ce15352f6149ebf0de1560a95 Mon Sep 17 00:00:00 2001 From: Vic Lee Date: Thu, 20 Jun 2013 12:10:01 +0800 Subject: [PATCH] libfreerdp-codec/rfx: fix a memory leak. --- libfreerdp/codec/rfx.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libfreerdp/codec/rfx.c b/libfreerdp/codec/rfx.c index 610654a0d..a8fbea20c 100644 --- a/libfreerdp/codec/rfx.c +++ b/libfreerdp/codec/rfx.c @@ -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);