summaryrefslogtreecommitdiff
path: root/src/playerinfo.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-05-24 02:54:01 +0300
committerAndrei Karas <akaras@inbox.ru>2011-05-24 02:54:01 +0300
commita0b5f5fee9809670c2c9cf9b1f63ab2be11fd9fd (patch)
treeb666fed3ff9bdea61159190035d697ea562c4faa /src/playerinfo.cpp
parentd2c42029b98c665725768b891aa877eb3267664f (diff)
downloadmv-a0b5f5fee9809670c2c9cf9b1f63ab2be11fd9fd.tar.gz
mv-a0b5f5fee9809670c2c9cf9b1f63ab2be11fd9fd.tar.bz2
mv-a0b5f5fee9809670c2c9cf9b1f63ab2be11fd9fd.tar.xz
mv-a0b5f5fee9809670c2c9cf9b1f63ab2be11fd9fd.zip
Fix leaks in client, skilldialog and playerinfo classes.
Diffstat (limited to 'src/playerinfo.cpp')
-rw-r--r--src/playerinfo.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/playerinfo.cpp b/src/playerinfo.cpp
index fb78e0ae8..72b091244 100644
--- a/src/playerinfo.cpp
+++ b/src/playerinfo.cpp
@@ -330,4 +330,10 @@ void init()
mListener = new PlayerInfoListener();
}
+void deinit()
+{
+ delete mListener;
+ mListener = 0;
+}
+
} // namespace PlayerInfo