]> git.sesse.net Git - vlc/commitdiff
libvlc: deinit actions in reverse order of init
authorRémi Denis-Courmont <remi@remlab.net>
Mon, 18 Mar 2013 19:41:40 +0000 (21:41 +0200)
committerRémi Denis-Courmont <remi@remlab.net>
Mon, 18 Mar 2013 21:15:21 +0000 (23:15 +0200)
src/libvlc.c

index a117d7f26d639f526f3edc6c2cc4d9bbcd75aee2..9621f4fbfdc45e09fee8f1f9a02526a3aada6127 100644 (file)
@@ -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