fix: memory overflow
This commit is contained in:
parent
b3d84cf057
commit
b7954b9aef
@ -104,6 +104,15 @@ class QueryList
|
|||||||
* Destruction of resources
|
* Destruction of resources
|
||||||
*/
|
*/
|
||||||
public function destruct()
|
public function destruct()
|
||||||
|
{
|
||||||
|
unset($this->query);
|
||||||
|
unset($this->kernel);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Destroy all documents
|
||||||
|
*/
|
||||||
|
public static function destructDocuments()
|
||||||
{
|
{
|
||||||
phpQuery::$documents = [];
|
phpQuery::$documents = [];
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user