summaryrefslogtreecommitdiffstats
path: root/libhb
diff options
context:
space:
mode:
authorsr55 <[email protected]>2016-12-23 22:31:36 +0000
committersr55 <[email protected]>2016-12-23 22:31:54 +0000
commitd5eae7718acf2f29430e550fb1791317fb0d7b65 (patch)
tree777b427f1f1ab276847440b84b1cc745da6829e2 /libhb
parent05e15f8bfed1fa811c394bc4b3b153cc256f0b76 (diff)
qsv: Fix a memory leak in enc_qsv.c Patch by maxim_d33
Diffstat (limited to 'libhb')
-rw-r--r--libhb/enc_qsv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libhb/enc_qsv.c b/libhb/enc_qsv.c
index 06fdb3d5e..a29833123 100644
--- a/libhb/enc_qsv.c
+++ b/libhb/enc_qsv.c
@@ -1437,7 +1437,7 @@ void encqsvClose(hb_work_object_t *w)
{
if (qsv_enc_space->is_init_done)
{
- for (i = hb_qsv_list_count(qsv_enc_space->tasks); i > 1; i--)
+ for (i = hb_qsv_list_count(qsv_enc_space->tasks); i >= 1; i--)
{
hb_qsv_task *task = hb_qsv_list_item(qsv_enc_space->tasks,
i - 1);