[libbluray-devel] commit: Fixed segfault when libbluray.jar not found (hpi1 )
git at videolan.org
git at videolan.org
Sun Dec 19 14:26:43 CET 2010
libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Sun Dec 19 15:24:50 2010 +0200| [9de9627c5bcced748aca31a1754f0d1c09315c8d] | committer: hpi1
Fixed segfault when libbluray.jar not found
> http://git.videolan.org/gitweb.cgi/libbluray.git/?a=commit;h=9de9627c5bcced748aca31a1754f0d1c09315c8d
---
src/libbluray/bdj/bdj.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/libbluray/bdj/bdj.c b/src/libbluray/bdj/bdj.c
index bfa9ae9..9ab8c1a 100644
--- a/src/libbluray/bdj/bdj.c
+++ b/src/libbluray/bdj/bdj.c
@@ -85,7 +85,7 @@ BDJAVA* bdj_open(const char *path, const char* start, void* bd, void* registers)
free(option);
free(classpath_opt);
- if (result != JNI_OK) {
+ if (result != JNI_OK || !bdjava->env) {
free(bdjava);
DEBUG(DBG_BDJ | DBG_CRIT, "Failed to create new Java VM.\n");
return NULL;
More information about the libbluray-devel
mailing list