]> git.sesse.net Git - vlc/commitdiff
* ./plugins/win32: fixed the bug on exiting the vout pressing 'q'
authorOlivier Teulière <ipkiss@videolan.org>
Sun, 31 Mar 2002 17:59:29 +0000 (17:59 +0000)
committerOlivier Teulière <ipkiss@videolan.org>
Sun, 31 Mar 2002 17:59:29 +0000 (17:59 +0000)
plugins/win32/intf_win32.cpp

index 696c8c10c0c79c545ace99e33154dfe954af8faf..5efa16852a4fdd29d29bf5f9332191815dcae2cb 100644 (file)
@@ -106,7 +106,10 @@ static void intf_Run( intf_thread_t *p_intf )
     p_intf->p_sys->p_window = new TMainFrameDlg( NULL );\r
     p_intf->p_sys->p_playlist = new TPlaylistDlg( NULL );\r
     p_intf->p_sys->p_messages = new TMessagesDlg( NULL );\r
+\r
+    /* show main window and wait until it is closed */\r
     p_intf->p_sys->p_window->ShowModal();\r
+\r
     if( p_intf->p_sys->p_disc ) delete p_intf->p_sys->p_disc;\r
     if( p_intf->p_sys->p_network ) delete p_intf->p_sys->p_network;\r
     if( p_intf->p_sys->p_preferences ) delete p_intf->p_sys->p_preferences;\r
@@ -219,7 +222,6 @@ int Win32Manage( intf_thread_t *p_intf )
 \r
         /* Prepare to die, young Skywalker */\r
         p_intf->p_sys->p_window->ModalResult = mrOk;\r
-        delete p_intf->p_sys->p_window;\r
 \r
         /* Just in case */\r
         return( FALSE );\r