mirror of
https://github.com/mpv-player/mpv
synced 2025-03-03 12:47:49 +00:00
vo_direct3d: remove redundant condition
talloc_free is safe to call with NULL.
This commit is contained in:
parent
4d8c074431
commit
6e161ff13f
@ -1078,8 +1078,7 @@ static mp_image_t *get_window_screenshot(d3d_priv *priv)
|
||||
return image;
|
||||
|
||||
error_exit:
|
||||
if (image)
|
||||
talloc_free(image);
|
||||
talloc_free(image);
|
||||
if (surface)
|
||||
IDirect3DSurface9_Release(surface);
|
||||
return NULL;
|
||||
|
Loading…
Reference in New Issue
Block a user