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

Unified Diff: src/FilterEngine.cpp

Issue 12647002: Fix memory leaks in libadblockplus (Closed)
Patch Set: Created Oct. 6, 2013, 10:21 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
« include/AdblockPlus/V8ValueHolder.h ('K') | « include/AdblockPlus/V8ValueHolder.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/FilterEngine.cpp
===================================================================
--- a/src/FilterEngine.cpp
+++ b/src/FilterEngine.cpp
@@ -233,6 +233,7 @@
JsValueList params;
params.push_back(jsEngine->NewValue(domain));
JsValueList result = func->Call(params)->AsList();
+ jsEngine->Gc();
Wladimir Palant 2013/10/08 08:12:19 This is a really bad idea, it will cause unnecessa
Felix Dahlke 2013/10/10 08:36:26 I don't think we should look into this at this poi
std::vector<std::string> selectors;
for (JsValueList::iterator it = result.begin(); it != result.end(); ++it)
selectors.push_back((*it)->AsString());
« include/AdblockPlus/V8ValueHolder.h ('K') | « include/AdblockPlus/V8ValueHolder.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld