mirror of https://github.com/mpv-player/mpv
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;
|
return image;
|
||||||
|
|
||||||
error_exit:
|
error_exit:
|
||||||
if (image)
|
talloc_free(image);
|
||||||
talloc_free(image);
|
|
||||||
if (surface)
|
if (surface)
|
||||||
IDirect3DSurface9_Release(surface);
|
IDirect3DSurface9_Release(surface);
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
Loading…
Reference in New Issue