[atlantik-cvs] CVS: kdegames/atlantik/libatlantikui estatedetails.cpp,1.19,1.20 estatedetails.h,1.9,1.10

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

Modified Files:
	estatedetails.cpp estatedetails.h 
Log Message:
valgrind fixes

Index: estatedetails.cpp
===================================================================
RCS file: /home/kde/kdegames/atlantik/libatlantikui/estatedetails.cpp,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -d -r1.19 -r1.20
--- estatedetails.cpp	23 Dec 2002 04:44:14 -0000	1.19
+++ estatedetails.cpp	27 Dec 2002 01:38:08 -0000	1.20
@@ -71,7 +71,13 @@
 	setPaletteBackgroundColor(m_estate ? m_estate->bgColor() : Qt::white);
 }
 
-// TODO: destructor cleaning up all buttons and listviewitems
+EstateDetails::~EstateDetails()
+{
+	delete m_pixmap;
+	delete m_quartzBlocks;
+	delete m_infoListView;
+	// TODO: clean up listviewitems
+}
 
 void EstateDetails::paintEvent(QPaintEvent *)
 {

Index: estatedetails.h
===================================================================
RCS file: /home/kde/kdegames/atlantik/libatlantikui/estatedetails.h,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -d -r1.9 -r1.10
--- estatedetails.h	28 Nov 2002 11:59:25 -0000	1.9
+++ estatedetails.h	27 Dec 2002 01:38:08 -0000	1.10
@@ -38,6 +38,7 @@
 
 public:
 	EstateDetails(Estate *estate, QString text, QWidget *parent, const char *name = 0);
+	~EstateDetails();
 	Estate *estate() { return m_estate; }
 
 	void addButton(const QString command, const QString caption, bool enabled);
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.