Fix memory leakage in VideoSourceHandlerTest.OpenWithoutClose
This CL is needed for landing https://codereview.chromium.org/552653005. https://codereview.chromium.org/552653005 moves MediaStream-related objects to Oilpan's heap, and the objects are not collected until a next GC is triggered. Thus some of the Chromium-side tests need to clear those objects and explicitly trigger a GC in order to make sure that all objects are collected by the end of each test. Otherwise LSan complains the leakage. I've already landed a similar fix before: https://codereview.chromium.org/566793002/ I think this CL is a final fix for the memory leakage. BUG=416466 Review URL: https://codereview.chromium.org/596923003 Cr-Commit-Position: refs/heads/master@{#297145}
Showing
Please register or sign in to comment