Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(135)

Issue 2717023002: Fix occasional race in VideoCapturerTrackSource seen by memcheck bot. (Closed)

Created:
3 years, 10 months ago by Taylor Brandstetter
Modified:
3 years, 10 months ago
Reviewers:
tommi, pthatcher1
CC:
webrtc-reviews_webrtc.org, tterriberry_mozilla.com
Target Ref:
refs/heads/master
Project:
webrtc
Visibility:
Public.

Description

Fix occasional race in VideoCapturerTrackSource seen by memcheck bot. The issue was that VideoCapturerTrackSource was adding a reference to itself, causing it to not be deleted even after no external objects reference it. The objects underneath it (threads for instance) may then be destroyed before the object dereferences them. BUG=webrtc:6487 Review-Url: https://codereview.webrtc.org/2717023002 Cr-Commit-Position: refs/heads/master@{#16841} Committed: https://chromium.googlesource.com/external/webrtc/+/f15fb452efe5a7082dd49faceba1ff123985f258

Patch Set 1 #

Patch Set 2 : Rebase onto master #

Unified diffs Side-by-side diffs Delta from patch set Stats (+9 lines, -9 lines) Patch
M webrtc/pc/videocapturertracksource.h View 1 chunk +3 lines, -7 lines 0 comments Download
M webrtc/pc/videocapturertracksource.cc View 1 chunk +6 lines, -2 lines 0 comments Download

Messages

Total messages: 9 (5 generated)
Taylor Brandstetter
Note that an additional bit of safety is that the destructor should always be run ...
3 years, 10 months ago (2017-02-25 11:19:10 UTC) #2
tommi
lgtm. good job tracking this down and improving our utilities along the way to support ...
3 years, 10 months ago (2017-02-25 14:06:58 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.webrtc.org/2717023002/20001
3 years, 10 months ago (2017-02-25 21:03:26 UTC) #6
commit-bot: I haz the power
3 years, 10 months ago (2017-02-25 21:38:03 UTC) #9
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/external/webrtc/+/f15fb452efe5a7082dd49face...

Powered by Google App Engine
This is Rietveld 408576698