Commit f3e05012 authored by Hannes Domani's avatar Hannes Domani Committed by Jean-Baptiste Kempf

Direct3D9: destroy video hwnd to prevent handle leak

IDirect3DDevice9_Present() creates an event like this:
\Sessions\1\BaseNamedObjects\DwmDxBltEvent_a7045e

But it isn't closed with IDirect3DDevice9_Release(), only explicitely
destroying the video window closes the event handle.
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
(cherry picked from commit 580970d3ae3ec2b0c08f0215056a69a7f7a5e747)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent ec8fbd54
......@@ -871,6 +871,9 @@ static void Win32VoutCloseWindow( event_thread_t *p_event )
vout_display_t *vd = p_event->vd;
msg_Dbg( vd, "Win32VoutCloseWindow" );
#ifdef MODULE_NAME_IS_direct3d9
DestroyWindow( p_event->hvideownd );
#endif
DestroyWindow( p_event->hwnd );
if( p_event->hfswnd )
DestroyWindow( p_event->hfswnd );
......
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