Bug 858176 - Free global reference before detaching the JVM. r=blassey

This commit is contained in:
Gian-Carlo Pascutto 2013-04-09 18:22:45 +02:00
parent ac1813bcc2
commit 09330d7a52

View File

@ -255,12 +255,12 @@ WebRtc_Word32 DeviceInfoAndroid::CreateCapabilityMap(
deviceUniqueIdUTF8,
_lastUsedDeviceNameLength + 1);
env->DeleteGlobalRef(javaCapClass);
VideoCaptureAndroid::ReleaseAndroidDeviceInfoObjects(attached);
WEBRTC_TRACE(webrtc::kTraceInfo, webrtc::kTraceVideoCapture, _id,
"CreateCapabilityMap %d", _captureCapabilities.Size());
env->DeleteGlobalRef(javaCapClass);
return _captureCapabilities.Size();
}