OSDN Git Service

Encoder: Avoid memory leak
authorXiang, Haihao <haihao.xiang@intel.com>
Fri, 14 Jul 2017 07:19:39 +0000 (15:19 +0800)
committerXiang, Haihao <haihao.xiang@intel.com>
Mon, 17 Jul 2017 05:11:03 +0000 (13:11 +0800)
commit7f50a13b4eb93ddd2a52b2ebb1c2f7554c23ccb8
treeb747ccbc3fce71e82d8ae35523ebaab119e0c51b
parentae8831fef930a1291eafb2571ea7f4f214ac7964
Encoder: Avoid memory leak

An internal surface is created when the input surface doesn't meet the
HW requirement for encoding, however this surface is not destroyed when
the corresponding context is destroyed which causes the memory leak
issue. This patch fixes this issue.

This fixes https://github.com/01org/libyami/issues/751

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
src/i965_encoder.c
src/i965_encoder.h