Commit f7105088 authored by mikeytown2's avatar mikeytown2

#941848: make sure view can be destoryed before trying to do it.

parent 29dd46a5
......@@ -1325,9 +1325,16 @@ function _boost_view_insert($debug = FALSE, $nid = FALSE) {
}
}
// Free memory
$view->destroy();
if (isset($view) && is_object($view) && method_exists($view, 'destroy')) {
$view->destroy();
}
unset($view);
}
// Free memory
if (isset($view) && is_object($view) && method_exists($view, 'destroy')) {
$view->destroy();
}
unset($view);
if ($domain_filter) {
domain_reset_domain(TRUE);
}
......
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