summaryrefslogtreecommitdiff
path: root/firmware/target/hosted/android/pcm-android.c
diff options
context:
space:
mode:
authorMaurus Cuelenaere <mcuelenaere@gmail.com>2011-03-11 19:25:05 +0000
committerMaurus Cuelenaere <mcuelenaere@gmail.com>2011-03-11 19:25:05 +0000
commit80a2c803327f60bd81e847a8f1557d516e0a721a (patch)
tree242fdd5651bca890c5f69eb0abe0d7d4325a3f27 /firmware/target/hosted/android/pcm-android.c
parentc2ee32b22aa50101fc092f610927cfbdd9a2d8f1 (diff)
Android: no need to keep RockboxPCM_class around
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29571 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/hosted/android/pcm-android.c')
-rw-r--r--firmware/target/hosted/android/pcm-android.c3
1 files changed, 1 insertions, 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, "<init>", "()V");
/* instance = new RockboxPCM() */
RockboxPCM_instance = e->NewObject(env_ptr, RockboxPCM_class, constructor);