From 1cd17536dbc8163f48833940faf76cd76d8ecd38 Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Thu, 2 Jul 2015 00:07:49 -0500 Subject: [PATCH] Fix leak of video fragments if the frame queue reaches the size limit --- limelight-common/VideoDepacketizer.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/limelight-common/VideoDepacketizer.c b/limelight-common/VideoDepacketizer.c index fdb5dd7..a2c0bec 100644 --- a/limelight-common/VideoDepacketizer.c +++ b/limelight-common/VideoDepacketizer.c @@ -83,8 +83,7 @@ static void freeDecodeUnitList(PLINKED_BLOCKING_QUEUE_ENTRY entry) { while (entry != NULL) { nextEntry = entry->flink; - // The entry is stored within the data allocation - free(entry->data); + freeQueuedDecodeUnit((PQUEUED_DECODE_UNIT) entry->data); entry = nextEntry; }