Fixed a mini memory leak

This commit is contained in:
Shoghi Cervantes Pueyo
2013-01-12 18:06:31 +01:00
parent 7e4692aaf1
commit 07ac028558
3 changed files with 22 additions and 14 deletions

View File

@@ -49,6 +49,11 @@ class ConsoleAPI{
public function defaultCommands($cmd, $params){
switch($cmd){
case "crash": //Crashes the server to generate an report
$this->callNotDefinedMethodCrash();
$this->server->api->server; //Access a private property
callNotExistingFunction();
break;
case "invisible":
$p = strtolower(array_shift($params));
switch($p){