mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-29 00:34:05 +02:00
IcingaObjectGroups,Imports: add some manual GC...
...to work around PHP issues
This commit is contained in:
parent
5cc28ac4a6
commit
1f5f34cea5
@ -351,4 +351,11 @@ class IcingaObjectGroups implements Iterator, Countable, IcingaConfigRenderer
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public function __destruct()
|
||||
{
|
||||
unset($this->storedGroups);
|
||||
unset($this->groups);
|
||||
unset($this->object);
|
||||
}
|
||||
}
|
||||
|
@ -370,4 +370,12 @@ class IcingaObjectImports implements Iterator, Countable, IcingaConfigRenderer
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public function __destruct()
|
||||
{
|
||||
unset($this->storedImport);
|
||||
unset($this->imports);
|
||||
unset($this->objects);
|
||||
unset($this->object);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user