Fix http://code.google.com/p/xmpphp/issues/detail?id=62 - memory leak
This commit is contained in:
parent
efb71fa7f3
commit
d228a306d4
@ -127,6 +127,7 @@ class Roster {
|
|||||||
$this->roster_array[$jid]['presence'][$resource] = array('priority' => $priority, 'show' => $show, 'status' => $status);
|
$this->roster_array[$jid]['presence'][$resource] = array('priority' => $priority, 'show' => $show, 'status' => $status);
|
||||||
} else { //Nuke unavailable resources to save memory
|
} else { //Nuke unavailable resources to save memory
|
||||||
unset($this->roster_array[$jid]['resource'][$resource]);
|
unset($this->roster_array[$jid]['resource'][$resource]);
|
||||||
|
unset($this->roster_array[$jid]['presence'][$resource]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user