[libbluray-devel] [PATCH] fixed crash on bd_close under xbmc
Scott D. Davilla
davilla at xbmc.org
Sat Aug 7 03:16:22 CEST 2010
diff --git a/src/libbluray/bluray.c b/src/libbluray/bluray.c
index d08f863..c4a1b1b 100644
--- a/src/libbluray/bluray.c
+++ b/src/libbluray/bluray.c
@@ -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);
bd->hdmv_vm can be zero on close so check it before calling hdmv_vm_free.
Scott
More information about the libbluray-devel
mailing list