summaryrefslogtreecommitdiff
path: root/scripts/xmppconfirmhandler.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@prodromou.name>2008-09-05 21:55:01 -0400
committerEvan Prodromou <evan@prodromou.name>2008-09-05 21:55:01 -0400
commit0c71340c9fecfad17d2619dfa44cb669023f8179 (patch)
tree1c936b6ffb2361a15a4e71fba2ffed5ce1226b73 /scripts/xmppconfirmhandler.php
parent9e8ae6a1e79c51baeca1063810ad96dadeab714d (diff)
free and unset DB_DataObjects after we're done with them
darcs-hash:20080906015501-84dde-e787962b9805759224389dd42a211dfa21da3473.gz
Diffstat (limited to 'scripts/xmppconfirmhandler.php')
-rwxr-xr-xscripts/xmppconfirmhandler.php6
1 files changed, 6 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);
}
}