summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorPhilipp Zabel <[email protected]>2017-06-30 10:39:53 +0200
committerAndres Gomez <[email protected]>2017-07-08 15:47:59 +0300
commit8db6b8326758c0d3209ee90a7e3cf08ca88d223f (patch)
treeba2d9d86ba5cfd837d1708fb9bd0555bbc7d32d0 /scripts
parentc50ed4cadec1f37a6cef474160feb021674112bc (diff)
st/mesa: release EGLImage on EGLImageTarget* error
The smapi->get_egl_image() call in st_egl_image_get_surface() stores a reference to the EGLImage's texture in stimg.texture. That reference is released via pipe_resource_reference(&stimg.texture, NULL) before stimg goes out of scope at the end of the function, but not in the error path if !is_format_supported(). Fixes: 83e9de25f325 ("st/mesa: EGLImageTarget* error handling") Cc: [email protected] Signed-off-by: Philipp Zabel <[email protected]> Reviewed-by: Marek Olšák <[email protected]> (cherry picked from commit 7d7bcd65d6019dfb63f31138a426fe2a043016db)
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions