[atlantik-cvs] CVS: kdegames/atlantik/libatlantikui estatedetails.cpp,1.12,1.12.4.1 estatedetails.h,1.7,1.7.4.1 token.cpp,1.30,1.30.4.1

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

Modified Files:
      Tag: KDE_3_1_BRANCH
	estatedetails.cpp estatedetails.h token.cpp 
Log Message:
valgrind fixes

Index: estatedetails.cpp
===================================================================
RCS file: /home/kde/kdegames/atlantik/libatlantikui/estatedetails.cpp,v
retrieving revision 1.12
retrieving revision 1.12.4.1
diff -u -d -r1.12 -r1.12.4.1
--- estatedetails.cpp	23 Oct 2002 19:18:20 -0000	1.12
+++ estatedetails.cpp	27 Dec 2002 01:37:20 -0000	1.12.4.1
@@ -57,6 +57,12 @@
 	m_buttonBox->addItem(new QSpacerItem(20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum));
 }
 
+EstateDetails::~EstateDetails()
+{
+	delete m_pixmap;
+	delete m_quartzBlocks;
+}
+
 void EstateDetails::paintEvent(QPaintEvent *)
 {
 	if (m_recreateQuartz)

Index: estatedetails.h
===================================================================
RCS file: /home/kde/kdegames/atlantik/libatlantikui/estatedetails.h,v
retrieving revision 1.7
retrieving revision 1.7.4.1
diff -u -d -r1.7 -r1.7.4.1
--- estatedetails.h	24 Jul 2002 03:35:39 -0000	1.7
+++ estatedetails.h	27 Dec 2002 01:37:20 -0000	1.7.4.1
@@ -36,6 +36,7 @@
 
 public:
 	EstateDetails(Estate *estate, QWidget *parent, const char *name = 0);
+	~EstateDetails();
 	Estate *estate() { return m_estate; }
 
 	void addButton(const QString command, const QString caption, bool enabled);

Index: token.cpp
===================================================================
RCS file: /home/kde/kdegames/atlantik/libatlantikui/token.cpp,v
retrieving revision 1.30
retrieving revision 1.30.4.1
diff -u -d -r1.30 -r1.30.4.1
--- token.cpp	22 Jul 2002 22:07:30 -0000	1.30
+++ token.cpp	27 Dec 2002 01:37:20 -0000	1.30.4.1
@@ -41,14 +41,16 @@
 	m_player = player;
 	connect(m_player, SIGNAL(changed(Player *)), this, SLOT(playerChanged()));
 
-	setLocation(location, false);
-	m_destination = 0;
 	m_inJail = false;
+	m_location = location;
+	m_destination = 0;
 
 	qpixmap = 0;
 	b_recreate = true;
 
 	setFixedSize(QSize(26, 26));
+
+	updateGeometry();
 }
 
 Player *Token::player()
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.