[vlc-commits] medialibrary: fix crash when the library module doesn't load

Steve Lhomme git at videolan.org
Tue Aug 28 13:58:50 CEST 2018


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Tue Aug 28 13:58:19 2018 +0200| [f6de5075715481fd445aa535c6f0a46b84e14cc0] | committer: Steve Lhomme

medialibrary: fix crash when the library module doesn't load

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

 src/misc/medialibrary.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/misc/medialibrary.c b/src/misc/medialibrary.c
index 7503ec5a8d..a4d86d25b7 100644
--- a/src/misc/medialibrary.c
+++ b/src/misc/medialibrary.c
@@ -103,8 +103,8 @@ vlc_medialibrary_t* libvlc_MlCreate( libvlc_int_t* p_libvlc  )
     p_ml->m.p_module = module_need( &p_ml->m, "medialibrary", NULL, false );
     if ( p_ml->m.p_module == NULL )
     {
-        vlc_object_release( &p_ml->m );
         vlc_mutex_destroy( &p_ml->lock );
+        vlc_object_release( &p_ml->m );
         return NULL;
     }
     return p_ml;



More information about the vlc-commits mailing list