vlc/vlc-2.2 | branch: master | Hannes Domani <[email protected]> | Sun Feb 8 14:08:50 2015 +0100| [f3e0501262459e535079fbdbcdb65a8e33547ca0] | committer: 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: Jean-Baptiste Kempf <[email protected]> (cherry picked from commit 580970d3ae3ec2b0c08f0215056a69a7f7a5e747) Signed-off-by: Jean-Baptiste Kempf <[email protected]> > http://git.videolan.org/gitweb.cgi/vlc/vlc-2.2.git/?a=commit;h=f3e0501262459e535079fbdbcdb65a8e33547ca0 --- modules/video_output/msw/events.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/video_output/msw/events.c b/modules/video_output/msw/events.c index a1fe018..64b23fe 100644 --- a/modules/video_output/msw/events.c +++ b/modules/video_output/msw/events.c @@ -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 ); _______________________________________________ vlc-commits mailing list [email protected] https://mailman.videolan.org/listinfo/vlc-commits
