Commit 55ba34b6 authored by mikeytown2's avatar mikeytown2

#882568: Fix memory leak in views code

parent af90f9df
......@@ -1327,12 +1327,16 @@ function _boost_view_insert($debug = FALSE, $nid = FALSE) {
// Free memory
if (isset($view) && is_object($view) && method_exists($view, 'destroy')) {
$view->destroy();
// Fix views bug http://drupal.org/node/988680
unset($view->old_view);
}
unset($view);
}
// Free memory
if (isset($view) && is_object($view) && method_exists($view, 'destroy')) {
$view->destroy();
// Fix views bug http://drupal.org/node/988680
unset($view->old_view);
}
unset($view);
if ($domain_filter) {
......
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