summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXavi Artigas <xartigas@fluendo.com>2013-05-02 11:30:17 (GMT)
committerXavi Artigas <xartigas@fluendo.com>2013-05-02 11:30:17 (GMT)
commit4c6be2c93ec7a0c344a902d89e9fdf627e7e3bb4 (patch)
tree5fd6f562de7de8ca76baac2b70a6022a68aaeea6
parent9f389c8b02c645a99fbf0d1f3ec762cdfb9ec9fb (diff)
parent05a0cffeec61e9d412bd16377781cb92ac516d30 (diff)
downloadgst-sdk-tutorials-4c6be2c93ec7a0c344a902d89e9fdf627e7e3bb4.tar.gz
gst-sdk-tutorials-4c6be2c93ec7a0c344a902d89e9fdf627e7e3bb4.tar.xz
Merge branch 'master' of ssh://git.freedesktop.org/git/gstreamer-sdk/gst-sdk-tutorials
-rw-r--r--gst-sdk/tutorials/android-tutorial-1/jni/tutorial-1.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/gst-sdk/tutorials/android-tutorial-1/jni/tutorial-1.c b/gst-sdk/tutorials/android-tutorial-1/jni/tutorial-1.c
index 92a3e87..2da20b6 100644
--- a/gst-sdk/tutorials/android-tutorial-1/jni/tutorial-1.c
+++ b/gst-sdk/tutorials/android-tutorial-1/jni/tutorial-1.c
@@ -7,7 +7,10 @@
* Java Bindings
*/
jstring gst_native_get_gstreamer_info (JNIEnv* env, jobject thiz) {
- return (*env)->NewStringUTF(env, gst_version_string());
+ char *version_utf8 = gst_version_string();
+ jstring *version_jstring = (*env)->NewStringUTF(env, version_utf8);
+ g_free (version_utf8);
+ return version_jstring;
}
static JNINativeMethod native_methods[] = {