Loading core/jni/android_hardware_Radio.cpp +2 −3 Original line number Original line Diff line number Diff line Loading @@ -23,7 +23,7 @@ #include "JNIHelp.h" #include "JNIHelp.h" #include "core_jni_helpers.h" #include "core_jni_helpers.h" #include <system/radio.h> #include <system/radio.h> #include <system/radio_metadata.h> #include <system/RadioMetadataWrapper.h> #include <radio/RadioCallback.h> #include <radio/RadioCallback.h> #include <radio/Radio.h> #include <radio/Radio.h> #include <utils/RefBase.h> #include <utils/RefBase.h> Loading Loading @@ -749,7 +749,7 @@ android_hardware_Radio_getProgramInformation(JNIEnv *env, jobject thiz, jobjectA } } struct radio_program_info nInfo; struct radio_program_info nInfo; radio_metadata_allocate(&nInfo.metadata, 0, 0); RadioMetadataWrapper metadataWrapper(&nInfo.metadata); jobject jInfo = NULL; jobject jInfo = NULL; int jStatus; int jStatus; Loading @@ -767,7 +767,6 @@ exit: if (jInfo != NULL) { if (jInfo != NULL) { env->DeleteLocalRef(jInfo); env->DeleteLocalRef(jInfo); } } radio_metadata_deallocate(nInfo.metadata); return jStatus; return jStatus; } } Loading Loading
core/jni/android_hardware_Radio.cpp +2 −3 Original line number Original line Diff line number Diff line Loading @@ -23,7 +23,7 @@ #include "JNIHelp.h" #include "JNIHelp.h" #include "core_jni_helpers.h" #include "core_jni_helpers.h" #include <system/radio.h> #include <system/radio.h> #include <system/radio_metadata.h> #include <system/RadioMetadataWrapper.h> #include <radio/RadioCallback.h> #include <radio/RadioCallback.h> #include <radio/Radio.h> #include <radio/Radio.h> #include <utils/RefBase.h> #include <utils/RefBase.h> Loading Loading @@ -749,7 +749,7 @@ android_hardware_Radio_getProgramInformation(JNIEnv *env, jobject thiz, jobjectA } } struct radio_program_info nInfo; struct radio_program_info nInfo; radio_metadata_allocate(&nInfo.metadata, 0, 0); RadioMetadataWrapper metadataWrapper(&nInfo.metadata); jobject jInfo = NULL; jobject jInfo = NULL; int jStatus; int jStatus; Loading @@ -767,7 +767,6 @@ exit: if (jInfo != NULL) { if (jInfo != NULL) { env->DeleteLocalRef(jInfo); env->DeleteLocalRef(jInfo); } } radio_metadata_deallocate(nInfo.metadata); return jStatus; return jStatus; } } Loading