vo_direct3d: remove redundant condition

talloc_free is safe to call with NULL.
This commit is contained in:
Kacper Michajłow 2023-11-18 23:34:31 +01:00 committed by Dudemanguy
parent 4d8c074431
commit 6e161ff13f
1 changed files with 1 additions and 2 deletions

View File

@ -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;