Chromium Code Reviews
DescriptionFix a memory leak in BrowsingDataFilterBuilder
BrowsingDataFilterBuilder is an abstract class that has a non-virtual
destructor. This is a mistake - since the class and its subclasses are
non-copyable, they're typically handled by pointers; calling delete on
such a pointer will only call the base class destructor, not those of
the subclasses, and thus leak any attributes of the subclasses.
This was spotted by ASan in the context of the CL implementing the task
scheduler for BrowsingDataRemover. When a task was finished processing,
its destructor did not correctly destroy the contained
BrowsingDataFilterBuilder.
BUG=630327
Committed: https://crrev.com/09df8fd82d462a314bde355b8aba7a221f1f3bbc
Cr-Commit-Position: refs/heads/master@{#407765}
Patch Set 1 #
Messages
Total messages: 11 (6 generated)
|
|||||||||||||||||||||||||||||||||||||