Corrected an IntelImageEncoder's issue that sometimes a created surface can't be destroyed.

BZ: 155655

Issue: Due to a coding bug, sometimes a created surface
can't be destroyed.

Solution: Fixed that bug.

Change-Id: I29b33f8d335eef0222705e502c9b68d533d00def
Signed-off-by: SUN,Jing <jing.a.sun@intel.com>
2 files changed