Call Plugin::__destruct() on PluginAPI::__destruct()

This commit is contained in:
Shoghi Cervantes 2014-02-06 15:21:12 +01:00
parent 85438aff0d
commit 14a7e0a201

View File

@ -27,6 +27,13 @@ class PluginAPI extends stdClass{
$this->server = ServerAPI::request();
$this->randomNonce = Utils::getRandomBytes(16, false);
}
public function __destruct(){
foreach($this->plugins as $p){
$p[0]->__destruct();
}
unset($plugins);
}
public function getList(){
$list = array();