Commit 2f9f4358 authored by Laurent Aimar's avatar Laurent Aimar Committed by Jean-Baptiste Kempf

Fixed a potential IDirectDrawSurface2 leak.

(cherry picked from commit f2366bdd03c2818e23fee33fefff9f4ca27892e1)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 24ab47a8
......@@ -1212,6 +1212,8 @@ static void DirectXDestroyPictureResource(vout_display_t *vd)
{
vout_display_sys_t *sys = vd->sys;
if (sys->resource.p_sys->front_surface != sys->resource.p_sys->surface)
DirectXDestroySurface(sys->resource.p_sys->surface);
DirectXDestroySurface(sys->resource.p_sys->front_surface);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment