mirror of
https://github.com/Icinga/icingaweb2-module-businessprocess.git
synced 2025-12-20 23:00:16 -05:00
Node: clean up destructor
This commit is contained in:
parent
9b53ae4382
commit
0a1c14c01a
1 changed files with 5 additions and 7 deletions
|
|
@ -144,15 +144,13 @@ abstract class Node
|
|||
return false;
|
||||
}
|
||||
|
||||
public function __destruct()
|
||||
{
|
||||
// required to avoid memleeks in PHP < 5.3:
|
||||
$this->parent = null;
|
||||
$this->children = array();
|
||||
}
|
||||
|
||||
public function __toString()
|
||||
{
|
||||
return $this->name;
|
||||
}
|
||||
|
||||
public function __destruct()
|
||||
{
|
||||
unset($this->parent);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue