From 6e161ff13fb83be9c5180e99427651975d33debf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kacper=20Michaj=C5=82ow?= Date: Sat, 18 Nov 2023 23:34:31 +0100 Subject: [PATCH] vo_direct3d: remove redundant condition talloc_free is safe to call with NULL. --- video/out/vo_direct3d.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/video/out/vo_direct3d.c b/video/out/vo_direct3d.c index af17b4cf59..16936bbe10 100644 --- a/video/out/vo_direct3d.c +++ b/video/out/vo_direct3d.c @@ -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;