Invert yield of module and release of module list (shouldn't matter but you never...
[vlc.git] / 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;
         }
     }