When initialising libVLC fails, this can be NULL and calling libvlc_release would cause a null-pointer dereference.