st/vdpau: Fix memory leak in vlVdpOutputSurfaceCreate.

Fixes resource leak defect reported by Coverity.

Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: Christian König <christian.koenig@amd.com>
This commit is contained in:
Vinson Lee 2013-02-21 22:13:06 -08:00
parent b4dba5bba2
commit 1bac4a1e6f
1 changed files with 1 additions and 0 deletions

View File

@ -86,6 +86,7 @@ vlVdpOutputSurfaceCreate(VdpDevice device,
if (!res) {
pipe_mutex_unlock(dev->mutex);
FREE(dev);
FREE(vlsurface);
return VDP_STATUS_ERROR;
}