[libbluray-devel] Free JVM option strings

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:50:22 2014 +0200| [a72c2f3e718b2fbb26245333105dbcbc9b3991ad] | committer: hpi1

Free JVM option strings

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

 src/libbluray/bdj/bdj.c |    7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/src/libbluray/bdj/bdj.c b/src/libbluray/bdj/bdj.c
index 2c4b1df..3507a4f 100644
--- a/src/libbluray/bdj/bdj.c
+++ b/src/libbluray/bdj/bdj.c
@@ -433,10 +433,9 @@ BDJAVA* bdj_open(const char *path, struct bluray *bd,
     JNIEnv* env = NULL;
     int result = JNI_CreateJavaVM_fp(&bdjava->jvm, (void**) &env, &args);
 
-//    while (n) {
-//        X_FREE(option[--n].optionString);
-//    }
-
+    while (--n >= 0) {
+        X_FREE(option[n].optionString);
+    }
     X_FREE(option);
 
     if (result != JNI_OK || !env) {



More information about the libbluray-devel mailing list