DescriptionDon't leak TestPluginWebFrameClient in WebPluginContainerTests.
WebViewHelper::initializeAndLoad() doesn't take ownership of the optional
frame client parameter. All other subclasses of TestWebFrameClient are
constructed on the stack too.
Fixes leaks like
Direct leak of 16 byte(s) in 1 object(s) allocated from:
#0 0x5b2ea0 in operator new(unsigned long) /b/build/slave/ClangToTLinuxASan/build/src/third_party/llvm/compiler-rt/lib/asan/asan_new_delete.cc:62
# #1 0x1799216 in blink::WebPluginContainerTest_Copy_Test::TestBody() third_party/WebKit/Source/web/tests/WebPluginContainerTest.cpp:242:99
#
BUG=523910, 245126, 494827
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=201487
Patch Set 1 #Patch Set 2 : . #Patch Set 3 : more #Messages
Total messages: 8 (3 generated)
|