From d5eae7718acf2f29430e550fb1791317fb0d7b65 Mon Sep 17 00:00:00 2001 From: sr55 Date: Fri, 23 Dec 2016 22:31:36 +0000 Subject: qsv: Fix a memory leak in enc_qsv.c Patch by maxim_d33 --- libhb/enc_qsv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libhb') 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); -- cgit v1.2.3