]> git.sesse.net Git - vlc/commitdiff
* destroy some mutex'es once in a while to prevent memleaks. Suggested by a forumuser...
authorDerk-Jan Hartman <hartman@videolan.org>
Thu, 23 Nov 2006 16:06:13 +0000 (16:06 +0000)
committerDerk-Jan Hartman <hartman@videolan.org>
Thu, 23 Nov 2006 16:06:13 +0000 (16:06 +0000)
modules/control/hotkeys.c
src/input/input.c
src/libvlc-common.c

index e066a69d23f08a47cc60aaccb0c97bff9cbfb4ff..14250c7e8ef46de3ec6c2cad640dd482166593cf 100644 (file)
@@ -135,6 +135,7 @@ static void Close( vlc_object_t *p_this )
     {
         vlc_object_release( p_intf->p_sys->p_vout );
     }
+    vlc_mutex_destroy( &p_intf->p_sys->change_lock );
     /* Destroy structure */
     free( p_intf->p_sys );
 }
index 084ce0434341a65a522b65049418da4ccfb0fb5d..c1b7fda86fc672a9c026abe1766c203a3bfad274 100644 (file)
@@ -859,7 +859,7 @@ static int Init( input_thread_t * p_input )
 
         if( p_input->i_start > 0 )
         {
-            if( p_input->i_start >= val.i_time )
+            if( p_input->i_start >= p_input->input.p_item->i_duration )
             {
                 msg_Warn( p_input, "invalid start-time ignored" );
             }
@@ -1184,6 +1184,7 @@ static void End( input_thread_t * p_input )
         CL_CO( decoded_audio) ;
         CL_CO( decoded_video );
         CL_CO( decoded_sub) ;
+        vlc_mutex_destroy( &p_input->counters.counters_lock );
     }
 
     /* Close optional stream output instance */
index c70e0068ded113058d80f81fd3a23ff3cc34eb5b..8d51f312e49b0442bb31ad0815bcbc28e5f73783 100644 (file)
@@ -1109,6 +1109,7 @@ int libvlc_InternalDestroy( libvlc_int_t *p_libvlc, vlc_bool_t b_release )
 
     /* Destroy mutexes */
     vlc_mutex_destroy( &p_libvlc->config_lock );
+    vlc_mutex_destroy( &p_libvlc->timer_lock );
 
     if( b_release ) vlc_object_release( p_libvlc );
     vlc_object_destroy( p_libvlc );