]> git.sesse.net Git - vlc/commitdiff
* modules/gui/wxwindows/timer.cpp: release input when interface is exiting.
authorGildas Bazin <gbazin@videolan.org>
Sat, 5 Mar 2005 17:06:35 +0000 (17:06 +0000)
committerGildas Bazin <gbazin@videolan.org>
Sat, 5 Mar 2005 17:06:35 +0000 (17:06 +0000)
modules/gui/wxwindows/timer.cpp

index 58b047a769039ad0f177ab3ff9279f8079f2f1cd..62ad84dd9db6e4ddbafe6dac3968991d31543e9b 100644 (file)
@@ -81,6 +81,11 @@ Timer::~Timer()
         var_DelCallback( p_playlist, "intf-show", IntfShowCB, p_intf );
         vlc_object_release( p_playlist );
     }
+
+    vlc_mutex_lock( &p_intf->change_lock );
+    if( p_intf->p_sys->p_input ) vlc_object_release( p_intf->p_sys->p_input );
+    p_intf->p_sys->p_input = NULL;
+    vlc_mutex_unlock( &p_intf->change_lock );
 }
 
 /*****************************************************************************