Android: Fix memory leak for remote MediaStream

BUG=webrtc:4892
R=glaznev@webrtc.org, tommi@webrtc.org

Review URL: https://codereview.webrtc.org/1308733004 .

Cr-Commit-Position: refs/heads/master@{#9797}
This commit is contained in:
Magnus Jedvert
2015-08-27 13:39:58 +02:00
parent 7391881f97
commit 1c3dd38cb8
4 changed files with 46 additions and 55 deletions

View File

@ -911,11 +911,7 @@ public class PeerConnectionClient {
executor.execute(new Runnable() {
@Override
public void run() {
if (peerConnection == null || isError) {
return;
}
remoteVideoTrack = null;
stream.videoTracks.get(0).dispose();
}
});
}