Fixed Memory Leak

This commit is contained in:
Shoghi Cervantes Pueyo 2013-01-11 00:20:13 +01:00
parent 8d3ad0c5ec
commit 6102efc809
4 changed files with 46 additions and 49 deletions

View file

@ -210,6 +210,7 @@ class PocketMinecraftServer{
$this->preparedSQL->selectHandlers->bindValue(":name", $event, SQLITE3_TEXT);
$handlers = $this->preparedSQL->selectHandlers->execute();
$result = true;
console("[INTERNAL] Handling ".$event, true, true, 3);
if($handlers !== false and $handlers !== true){
while(false !== ($hn = $handlers->fetchArray(SQLITE3_ASSOC)) and $result !== false){
$handler = $this->handlers[(int) $hn["ID"]];