Commit 81a0512d authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

zsh: Gracefully release libvlc on error

parent c85a2dd8
......@@ -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];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment