[libbluray-devel] use X_FREE

hpi1 git at videolan.org
Thu May 19 15:06:03 CEST 2016


libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Tue May 17 15:03:15 2016 +0300| [a8ff32ed81c298e95c9f60622eff20b1ca4ea74d] | committer: hpi1

use X_FREE

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

 src/libbluray/bdj/native/java_awt_BDFontMetrics.c |    4 ++--
 src/libbluray/disc/udf_fs.c                       |    2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/libbluray/bdj/native/java_awt_BDFontMetrics.c b/src/libbluray/bdj/native/java_awt_BDFontMetrics.c
index f84a382..9b2940e 100644
--- a/src/libbluray/bdj/native/java_awt_BDFontMetrics.c
+++ b/src/libbluray/bdj/native/java_awt_BDFontMetrics.c
@@ -484,7 +484,7 @@ Java_java_awt_BDFontMetrics_charsWidthN(JNIEnv * env, jobject obj, jlong ftFace,
         return 0;
     (*env)->GetCharArrayRegion(env, charArray, offset, length, chars);
     if ((*env)->ExceptionCheck(env)) {
-        free(chars);
+        X_FREE(chars);
         return 0;
     }
 
@@ -494,7 +494,7 @@ Java_java_awt_BDFontMetrics_charsWidthN(JNIEnv * env, jobject obj, jlong ftFace,
         }
     }
 
-    free(chars);
+    X_FREE(chars);
 
     return width;
 
diff --git a/src/libbluray/disc/udf_fs.c b/src/libbluray/disc/udf_fs.c
index 3e438ca..e7c683c 100644
--- a/src/libbluray/disc/udf_fs.c
+++ b/src/libbluray/disc/udf_fs.c
@@ -210,7 +210,7 @@ typedef struct {
 
 static int _si_close(struct udfread_block_input *bi_gen)
 {
-    free(bi_gen);
+    X_FREE(bi_gen);
     return 0;
 }
 



More information about the libbluray-devel mailing list