Bug 918372 moved the Android WebRTC code over to maintaining a single, application-level, shared global Context reference. Part of the reason was to remove the need to attach/detach the JVM for the sole purpose of deleting one global references on each WebRTC session start. Unfortunately the patch that removed the DeleteGlobalRef call: https://hg.mozilla.org/releases/mozilla-aurora/rev/c8abbbef2a67 missed an instance in EnumerateAudioDevices.
Created attachment 825835 [details] [diff] [review] Patch 1. Fix leftover DeleteGlobalRef
The impact of this has so far been zero because: a) http://dxr.mozilla.org/mozilla-central/source/media/webrtc/trunk/webrtc/modules/audio_device/android/org/webrtc/voiceengine/WebRTCAudioDevice.java#l169 The reference is only used to get the System Audio Service (and that ref is kept). b) Bug 918953