Invert yield of module and release of module list (shouldn't matter but you never...
authorAntoine Cellerier <dionoea@videolan.org>
Wed, 22 Aug 2007 22:16:36 +0000 (22:16 +0000)
committerAntoine Cellerier <dionoea@videolan.org>
Wed, 22 Aug 2007 22:16:36 +0000 (22:16 +0000)
src/modules/modules.c

index c4a2355..49c179d 100644 (file)
@@ -780,8 +780,8 @@ module_t *__module_FindName( vlc_object_t *p_this, const char * psz_name )
         if( psz_module_name && !strcmp( psz_module_name, psz_name ) )
         {
             /* We can release the list, and return yes */
-            vlc_list_release( p_list );
             vlc_object_yield( p_module );
+            vlc_list_release( p_list );
             return p_module;
         }
     }