[atlantik-cvs] CVS: kdegames/atlantik/client atlantik.cpp,1.142,1.143

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

Modified Files:
	atlantik.cpp 
Log Message:
fix double deletion

Index: atlantik.cpp
===================================================================
RCS file: /home/kde/kdegames/atlantik/client/atlantik.cpp,v
retrieving revision 1.142
retrieving revision 1.143
diff -u -d -r1.142 -r1.143
--- atlantik.cpp	9 Jun 2003 18:23:51 -0000	1.142
+++ atlantik.cpp	9 Jun 2003 18:53:59 -0000	1.143
@@ -212,10 +212,7 @@
 	// Find and remove portfolioview
 	PortfolioView *portfolioView = findPortfolioView(player);
 	if (portfolioView)
-	{
 		m_portfolioViews.remove(portfolioView);
-		delete portfolioView;
-	}
 
 	// TODO: Remove tokens from board
 }
@@ -532,10 +529,7 @@
 {
 	PortfolioView *portfolioView = findPortfolioView(player);
 	if (portfolioView && player->gameId() == -1)
-	{
 		m_portfolioViews.remove(portfolioView);
-		delete portfolioView;
-	}
 	else if (!portfolioView && player->gameId() != -1)
 		addPortfolioView(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.