Skip to content
Snippets Groups Projects
Commit 81a0512d authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen
Browse files

zsh: Gracefully release libvlc on error

parent c85a2dd8
No related branches found
No related tags found
No related merge requests found
......@@ -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];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment