summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--video/out/vo_direct3d.c3
1 files changed, 1 insertions, 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;