summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/xmppconfirmhandler.php6
-rwxr-xr-xscripts/xmppdaemon.php7
2 files changed, 13 insertions, 0 deletions
diff --git a/scripts/xmppconfirmhandler.php b/scripts/xmppconfirmhandler.php
index d3b8ac85a..d1735d8d2 100755
--- a/scripts/xmppconfirmhandler.php
+++ b/scripts/xmppconfirmhandler.php
@@ -76,6 +76,10 @@ class XmppConfirmHandler extends XmppQueueHandler {
continue;
}
}
+ $user->free();
+ unset($user);
+ $confirm->free();
+ unset($confirm);
$this->idle(0);
} else {
# $this->clear_old_confirm_claims();
@@ -119,6 +123,8 @@ class XmppConfirmHandler extends XmppQueueHandler {
$confirm->claimed = NULL;
$confirm->whereAdd('now() - claimed > '.CLAIM_TIMEOUT);
$confirm->update(DB_DATAOBJECT_WHEREADD_ONLY);
+ $confirm->free();
+ unset($confirm);
}
}
diff --git a/scripts/xmppdaemon.php b/scripts/xmppdaemon.php
index c5a53e457..e067fdcdb 100755
--- a/scripts/xmppdaemon.php
+++ b/scripts/xmppdaemon.php
@@ -145,6 +145,9 @@ class XMPPDaemon extends Daemon {
}
$this->add_notice($user, $pl);
}
+
+ $user->free();
+ unset($user);
}
function is_self($from) {
@@ -281,6 +284,8 @@ class XMPPDaemon extends Daemon {
common_broadcast_notice($notice);
$this->log(LOG_INFO,
'Added notice ' . $notice->id . ' from user ' . $user->nickname);
+ $notice->free();
+ unset($notice);
}
function handle_presence(&$pl) {
@@ -310,6 +315,8 @@ class XMPPDaemon extends Daemon {
' status from presence.');
$this->add_notice($user, $pl);
}
+ $user->free();
+ unset($user);
}
break;
}