st/omx: Fix resource leak on OMX_ErrorNone
authorRobert Foss <robert.foss@collabora.com>
Thu, 21 Apr 2016 21:49:20 +0000 (17:49 -0400)
committerEmil Velikov <emil.l.velikov@gmail.com>
Mon, 25 Apr 2016 14:09:37 +0000 (15:09 +0100)
commitb87856d25d1be1953dea30814994fc40cac5e573
tree5fa030e47cafe759870e0842efe7509a847f4a91
parent3c8f9ed9b7fd4462bae66685bf2389f4802dc84e
st/omx: Fix resource leak on OMX_ErrorNone

Avoid leaking buffer allocated for task if an error has occured.

Coverity id: 1213929
Signed-off-by: Robert Foss <robert.foss@collabora.com>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
src/gallium/state_trackers/omx/vid_enc.c