From 80a2c803327f60bd81e847a8f1557d516e0a721a Mon Sep 17 00:00:00 2001 From: Maurus Cuelenaere Date: Fri, 11 Mar 2011 19:25:05 +0000 Subject: [PATCH] Android: no need to keep RockboxPCM_class around git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29571 a1c6a512-1295-4272-9138-f99709370657 --- firmware/target/hosted/android/pcm-android.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/firmware/target/hosted/android/pcm-android.c b/firmware/target/hosted/android/pcm-android.c index 0f59f3f2ab..4c34e3cd91 100644 --- a/firmware/target/hosted/android/pcm-android.c +++ b/firmware/target/hosted/android/pcm-android.c @@ -33,7 +33,6 @@ static char *pcm_data_start; static jmethodID play_pause_method; static jmethodID stop_method; static jmethodID set_volume_method; -static jclass RockboxPCM_class; static jobject RockboxPCM_instance; @@ -158,7 +157,7 @@ void pcm_play_dma_init(void) JNIEnv *env_ptr = getJavaEnvironment(); JNIEnv e = *env_ptr; /* get the class and its constructor */ - RockboxPCM_class = e->FindClass(env_ptr, "org/rockbox/RockboxPCM"); + jclass RockboxPCM_class = e->FindClass(env_ptr, "org/rockbox/RockboxPCM"); jmethodID constructor = e->GetMethodID(env_ptr, RockboxPCM_class, "", "()V"); /* instance = new RockboxPCM() */ RockboxPCM_instance = e->NewObject(env_ptr, RockboxPCM_class, constructor);