fix: memory overflow

This commit is contained in:
Jaeger 2020-03-20 13:26:40 +08:00
parent b3d84cf057
commit b7954b9aef

View File

@ -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 = [];
} }