summaryrefslogtreecommitdiff
path: root/src/net/eathena/mailhandler.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/eathena/mailhandler.cpp')
-rw-r--r--src/net/eathena/mailhandler.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/net/eathena/mailhandler.cpp b/src/net/eathena/mailhandler.cpp
index 4ecbfdda4..44edeb5bd 100644
--- a/src/net/eathena/mailhandler.cpp
+++ b/src/net/eathena/mailhandler.cpp
@@ -35,6 +35,11 @@ MailHandler::MailHandler()
mailHandler = this;
}
+MailHandler::~MailHandler()
+{
+ mailHandler = nullptr;
+}
+
void MailHandler::refresh() const
{
createOutPacket(CMSG_MAIL_REFRESH_INBOX);