Skip to content

Commit

Permalink
fix: memory overflow
Browse files Browse the repository at this point in the history
  • Loading branch information
jae-jae committed Mar 20, 2020
1 parent b3d84cf commit b7954b9
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/QueryList.php
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,15 @@ public static function config()
* Destruction of resources
*/
public function destruct()
{
unset($this->query);
unset($this->kernel);
}

/**
* Destroy all documents
*/
public static function destructDocuments()
{
phpQuery::$documents = [];
}
Expand Down

0 comments on commit b7954b9

Please sign in to comment.