mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-02 18:08:58 +00:00
Bug 902431 - Don't clean up references to global Android WebRTC objects. r=blassey
This commit is contained in:
parent
ced8171752
commit
79053b4413
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user