[prev in list] [next in list] [prev in thread] [next in thread] 

List:       atlantik-devel
Subject:    [atlantik-cvs] CVS: kdegames/atlantik/libatlantikui estatedetails.cpp,1.19,1.20 estatedetails.h,1.9,
From:       kde () office ! kde ! org
Date:       2002-12-27 1:38:10
[Download RAW message or body]

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);

_______________________________________________
atlantik-cvs mailing list
atlantik-cvs@mail.kde.org
http://mail.kde.org/mailman/listinfo/atlantik-cvs
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic