[libbluray-devel] free -> X_FREE

hpi1 git at videolan.org
Fri Jan 24 20:30:03 CET 2014


libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Fri Jan 24 12:54:18 2014 +0200| [2b3b925f1143e8382fd0e78df32f2066fb37844f] | committer: hpi1

free -> X_FREE

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

 src/libbluray/bdj/bdj.c         |    2 +-
 src/libbluray/bdj/bdjo_parser.c |    6 +++---
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/libbluray/bdj/bdj.c b/src/libbluray/bdj/bdj.c
index 55d2dad..7fc9ab0 100644
--- a/src/libbluray/bdj/bdj.c
+++ b/src/libbluray/bdj/bdj.c
@@ -327,7 +327,7 @@ static int _bdj_init(BDJAVA *bdjava, JNIEnv *env)
     (*env)->DeleteLocalRef(env, init_class);
     (*env)->DeleteLocalRef(env, param_disc_id);
 
-    free(id_path);
+    X_FREE(id_path);
     bdid_free(&id);
 
     return 1;
diff --git a/src/libbluray/bdj/bdjo_parser.c b/src/libbluray/bdj/bdjo_parser.c
index 450046f..b61cd9c 100644
--- a/src/libbluray/bdj/bdjo_parser.c
+++ b/src/libbluray/bdj/bdjo_parser.c
@@ -69,7 +69,7 @@ static jstring _read_jstring(JNIEnv* env, BITBUFFER* buf, uint32_t length)
     char* str;
     _make_string(buf, &str, length);
     jstring jstr = (*env)->NewStringUTF(env, str);
-    free(str);
+    X_FREE(str);
     return jstr;
 }
 
@@ -429,10 +429,10 @@ jobject bdjo_read(JNIEnv* env, const char* file)
 
             result = _parse_bdjo(env, buf);
 
-            free(buf);
+            X_FREE(buf);
         }
 
-        free(data);
+        X_FREE(data);
     }
 
     file_close(handle);



More information about the libbluray-devel mailing list