st/vdpau: Destroy context when initialization fails
authorAaron Watry <awatry@gmail.com>
Fri, 15 Nov 2013 22:07:31 +0000 (16:07 -0600)
committerAaron Watry <awatry@gmail.com>
Mon, 23 Dec 2013 13:24:50 +0000 (07:24 -0600)
commit20446d0e535c0735489c8944e8d767e0fc74fc6e
treef9123049b473cd4df4d2954b00f6ac5c84dc4a42
parent767b0f82c37f0370c05335120e50f0a534549109
st/vdpau: Destroy context when initialization fails

Prevents a potential memory leak found when tracking down something else.

Reviewed-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Tom Stellard <thomas.stellard@amd.com>
CC: "10.0" <mesa-stable@lists.freedesktop.org>
src/gallium/state_trackers/vdpau/device.c