[atlantik-cvs] CVS: kdegames/atlantik/libatlantikui token.cpp,1.36,1.37 token.h,1.19,1.20

[email protected]
Newsgroups gmane.comp.kde.devel.atlantik
Message-ID <[email protected]>
Update of /home/kde/kdegames/atlantik/libatlantikui
In directory office:/tmp/cvs-serv9977/libatlantikui

Modified Files:
	token.cpp token.h 
Log Message:
valgrind: delete token's scaled image in deconstructor

Index: token.cpp
===================================================================
RCS file: /home/kde/kdegames/atlantik/libatlantikui/token.cpp,v
retrieving revision 1.36
retrieving revision 1.37
diff -u -d -r1.36 -r1.37
--- token.cpp	19 Dec 2002 04:03:40 -0000	1.36
+++ token.cpp	27 Dec 2002 00:40:26 -0000	1.37
@@ -56,6 +56,11 @@
 	setFixedSize(QSize(ICONSIZE, ICONSIZE + KGlobalSettings::generalFont().pointSize()));
 }
 
+Token::~Token()
+{
+	delete m_image;
+}
+
 Player *Token::player()
 {
 	return m_player;

Index: token.h
===================================================================
RCS file: /home/kde/kdegames/atlantik/libatlantikui/token.h,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -d -r1.19 -r1.20
--- token.h	29 Nov 2002 04:27:31 -0000	1.19
+++ token.h	27 Dec 2002 00:40:26 -0000	1.20
@@ -31,6 +31,7 @@
 
 	public:
 		Token (Player *player, AtlantikBoard *parent, const char *name = 0);
+		~Token();
 		Player *player();
 		void setLocation(Estate *estate);
 		Estate *location() { return m_location; }
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.