[vlc-commits] zsh: Gracefully release libvlc on error

Hugo Beauzée-Luyssen git at videolan.org
Wed Feb 3 23:07:47 CET 2016


vlc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Wed Feb  3 22:32:48 2016 +0100| [81a0512d0f1ff5b743586d0251296e49f91fcd59] | committer: Hugo Beauzée-Luyssen

zsh: Gracefully release libvlc on error

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

 extras/analyser/zsh.cpp |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/extras/analyser/zsh.cpp b/extras/analyser/zsh.cpp
index f1f8e1a..0954a72 100644
--- a/extras/analyser/zsh.cpp
+++ b/extras/analyser/zsh.cpp
@@ -230,7 +230,10 @@ int main(int argc, const char **argv)
 
     mod_list = module_list_get(&modules);
     if (!mod_list || modules == 0)
+    {
+        libvlc_release(libvlc);
         return 2;
+    }
 
     module_t **max = &mod_list[modules];
 



More information about the vlc-commits mailing list