Commit b3244c6c authored by mikeytown2's avatar mikeytown2

#936422: use ->destroy() to prevent memory leaks

parent 958af5f6
......@@ -1324,6 +1324,8 @@ function _boost_view_insert($debug = FALSE, $nid = FALSE) {
}
}
}
// Free memory
$view->destroy();
unset($view);
}
if ($domain_filter) {
......@@ -1455,6 +1457,9 @@ function boost_expire_node($node, $nid = 0, $debug = FALSE) {
// Check for domain access filter "Available on current domain"
$filters = $view->get_items('filter', $info[1]);
// Free memory
$view->destroy();
unset($view);
if (isset($filters['current_all']) || isset($filters['gid']) || isset($filters['domain_id'])) {
$fake_node = $node;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment