зеркало из https://github.com/mozilla/gecko-dev.git
Bug 858176 - Free global reference before detaching the JVM. r=blassey
This commit is contained in:
Родитель
3d17116fda
Коммит
17dcd8f000
|
@ -255,12 +255,12 @@ WebRtc_Word32 DeviceInfoAndroid::CreateCapabilityMap(
|
||||||
deviceUniqueIdUTF8,
|
deviceUniqueIdUTF8,
|
||||||
_lastUsedDeviceNameLength + 1);
|
_lastUsedDeviceNameLength + 1);
|
||||||
|
|
||||||
|
env->DeleteGlobalRef(javaCapClass);
|
||||||
|
|
||||||
VideoCaptureAndroid::ReleaseAndroidDeviceInfoObjects(attached);
|
VideoCaptureAndroid::ReleaseAndroidDeviceInfoObjects(attached);
|
||||||
WEBRTC_TRACE(webrtc::kTraceInfo, webrtc::kTraceVideoCapture, _id,
|
WEBRTC_TRACE(webrtc::kTraceInfo, webrtc::kTraceVideoCapture, _id,
|
||||||
"CreateCapabilityMap %d", _captureCapabilities.Size());
|
"CreateCapabilityMap %d", _captureCapabilities.Size());
|
||||||
|
|
||||||
env->DeleteGlobalRef(javaCapClass);
|
|
||||||
|
|
||||||
return _captureCapabilities.Size();
|
return _captureCapabilities.Size();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче