[atlantik-cvs] CVS: kdegames/atlantik/client atlantik.cpp,1.121.6.9,1.121.6.10

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

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

Index: atlantik.cpp
===================================================================
RCS file: /home/kde/kdegames/atlantik/client/atlantik.cpp,v
retrieving revision 1.121.6.9
retrieving revision 1.121.6.10
diff -u -d -r1.121.6.9 -r1.121.6.10
--- atlantik.cpp	21 Jan 2003 02:36:42 -0000	1.121.6.9
+++ atlantik.cpp	9 Jun 2003 18:54:42 -0000	1.121.6.10
@@ -203,10 +203,7 @@
 	// Find and remove portfolioview
 	PortfolioView *portfolioView = findPortfolioView(player);
 	if (portfolioView)
-	{
 		m_portfolioViews.remove(portfolioView);
-		delete portfolioView;
-	}
 
 	// TODO: Remove tokens from board
 }
@@ -501,10 +498,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.