Bug 902431 - Don't clean up references to global Android WebRTC objects. r=blassey

This commit is contained in:
Gian-Carlo Pascutto 2013-09-23 14:41:41 +02:00
parent ced8171752
commit 79053b4413

View File

@ -436,13 +436,8 @@ VideoCaptureAndroid::~VideoCaptureAndroid() {
// Delete global object ref to the camera.
env->DeleteGlobalRef(_javaCaptureObj);
// Clean up the global class references
env->DeleteGlobalRef(g_javaCmClass);
env->DeleteGlobalRef(g_javaCmDevInfoClass);
_javaCaptureObj = NULL;
VideoCaptureAndroid::g_javaCmClass = NULL;
VideoCaptureAndroid::g_javaCmDevInfoClass = NULL;
}
else {
WEBRTC_TRACE(webrtc::kTraceError, webrtc::kTraceVideoCapture, -1,