Commit b53a5dd5 authored by gates's avatar gates

Ensure bd->hdmv_vm is not NULL before freeing.

parent 6f45b11b
......@@ -519,7 +519,9 @@ void bd_close(BLURAY *bd)
nav_title_close(bd->title);
}
hdmv_vm_free(bd->hdmv_vm);
if (bd->hdmv_vm)
hdmv_vm_free(bd->hdmv_vm);
indx_free(bd->index);
bd_registers_free(bd->regs);
......
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