Commit 580970d3 authored by ssbssa's avatar ssbssa Committed by Jean-Baptiste Kempf
Browse files

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: Jean-Baptiste Kempf's avatarJean-Baptiste Kempf <jb@videolan.org>
parent 7296c976
......@@ -865,6 +865,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