Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: compiled/ElemHide.cpp

Issue 29695575: Noissue - Fix some refcounting errors (Closed) Base URL: https://hg.adblockplus.org/adblockpluscore/
Patch Set: Created Feb. 12, 2018, 2:39 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: compiled/ElemHide.cpp
===================================================================
--- a/compiled/ElemHide.cpp
+++ b/compiled/ElemHide.cpp
@@ -192,22 +192,22 @@
}
}
return intrusive_ptr<ElemHide_SelectorList>(mUnconditionalSelectorsCache).release();
}
ElemHide_SelectorList* ElemHide::GetSelectorsForDomain(const String& domain,
Criteria criteria) const
{
- intrusive_ptr<ElemHide_SelectorList> selectors(new ElemHide_SelectorList());
+ intrusive_ptr<ElemHide_SelectorList> selectors(new ElemHide_SelectorList(), false);
annotate_address(selectors.get(), "ElemHide_SelectorList");
if (criteria < NO_UNCONDITIONAL)
{
- intrusive_ptr<ElemHide_SelectorList> selector(GetUnconditionalSelectors());
+ intrusive_ptr<ElemHide_SelectorList> selector(GetUnconditionalSelectors(), false);
selectors->append(*selector);
}
bool specificOnly = criteria >= SPECIFIC_ONLY;
StringSet seenFilters;
DependentString docDomain(domain);
DependentString currentDomain(domain);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld