From a0b5f5fee9809670c2c9cf9b1f63ab2be11fd9fd Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 24 May 2011 02:54:01 +0300 Subject: Fix leaks in client, skilldialog and playerinfo classes. --- src/playerinfo.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/playerinfo.cpp') 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 -- cgit v1.2.3-70-g09d2