projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
767b0f8
)
st/vdpau: Destroy context when initialization fails
author
Aaron Watry
<awatry@gmail.com>
Fri, 15 Nov 2013 22:07:31 +0000
(16:07 -0600)
committer
Aaron Watry
<awatry@gmail.com>
Mon, 23 Dec 2013 13:24:50 +0000
(07:24 -0600)
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
patch
|
blob
|
history
diff --git
a/src/gallium/state_trackers/vdpau/device.c
b/src/gallium/state_trackers/vdpau/device.c
index 309fee4afaee39021af239225261525035c16aee..fb9c68c26e097a8d353aea6a5aa179021ce737e1 100644
(file)
--- a/
src/gallium/state_trackers/vdpau/device.c
+++ b/
src/gallium/state_trackers/vdpau/device.c
@@
-86,6
+86,7
@@
vdp_imp_device_create_x11(Display *display, int screen, VdpDevice *device,
return VDP_STATUS_OK;
no_handle:
+ dev->context->destroy(dev->context);
/* Destroy vscreen */
no_context:
vl_screen_destroy(dev->vscreen);