dvdread: fix use after free on error (refs #6594)