[vlc-commits] libvlc: deinit actions in reverse order of init

Rémi Denis-Courmont git at videolan.org
Mon Mar 18 22:15:26 CET 2013


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Mon Mar 18 21:41:40 2013 +0200| [daafd8f20950253757c940c9e9ec9e72bdab8cb3] | committer: Rémi Denis-Courmont

libvlc: deinit actions in reverse order of init

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=daafd8f20950253757c940c9e9ec9e72bdab8cb3
---

 src/libvlc.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/libvlc.c b/src/libvlc.c
index a117d7f..9621f4f 100644
--- a/src/libvlc.c
+++ b/src/libvlc.c
@@ -614,6 +614,8 @@ void libvlc_InternalCleanup( libvlc_int_t *p_libvlc )
     }
 #endif
 
+    vlc_DeinitActions( p_libvlc, priv->actions );
+
     /* Save the configuration */
     if( !var_InheritBool( p_libvlc, "ignore-config" ) )
         config_AutoSaveConfigFile( VLC_OBJECT(p_libvlc) );
@@ -621,7 +623,6 @@ void libvlc_InternalCleanup( libvlc_int_t *p_libvlc )
     /* Free module bank. It is refcounted, so we call this each time  */
     module_EndBank (true);
 
-    vlc_DeinitActions( p_libvlc, priv->actions );
 #if defined(WIN32) || defined(__OS2__)
     system_End( );
 #endif



More information about the vlc-commits mailing list