st/omx: Avoid segfault in deconstructor if constructor fails
authorTom St Denis <tom.stdenis@amd.com>
Tue, 3 Nov 2015 17:41:54 +0000 (12:41 -0500)
committerMarek Olšák <marek.olsak@amd.com>
Tue, 12 Jan 2016 18:13:19 +0000 (19:13 +0100)
commit56fc2986d554b93d16fa1151765a9987bc42e4da
tree3a53152d2ff3918dd22f5ecfc98f2a65172683de
parent6f898f740c4932f3d34f5f69d60b9b9b6b3a9327
st/omx: Avoid segfault in deconstructor if constructor fails

If the constructor fails before the LIST_INIT calls the pointers
will be null and the deconstructor will segfault.

Signed-off-by: Tom St Denis <tom.stdenis@amd.com>
Reviewed-by: Leo Liu <leo.liu@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
src/gallium/state_trackers/omx/vid_enc.c