[libbluray-devel] log error before cleanup

hpi1 git at videolan.org
Wed Jan 22 12:49:42 CET 2014


libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Tue Jan 21 20:51:32 2014 +0200| [9da446b4c9e0da063dfc12526ad2f27c325ae90f] | committer: hpi1

log error before cleanup

> http://git.videolan.org/gitweb.cgi/libbluray.git/?a=commit;h=9da446b4c9e0da063dfc12526ad2f27c325ae90f
---

 src/libbluray/bdj/bdj.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/libbluray/bdj/bdj.c b/src/libbluray/bdj/bdj.c
index 3507a4f..bf77d68 100644
--- a/src/libbluray/bdj/bdj.c
+++ b/src/libbluray/bdj/bdj.c
@@ -439,8 +439,8 @@ BDJAVA* bdj_open(const char *path, struct bluray *bd,
     X_FREE(option);
 
     if (result != JNI_OK || !env) {
-        bdj_close(bdjava);
         BD_DEBUG(DBG_BDJ | DBG_CRIT, "Failed to create new Java VM.\n");
+        bdj_close(bdjava);
         return NULL;
     }
 



More information about the libbluray-devel mailing list