[atlantik-cvs] CVS: kdegames/atlantik/libatlantic trade.cpp,1.17,1.17.6.1

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

Modified Files:
      Tag: KDE_3_1_BRANCH
	trade.cpp 
Log Message:
bugfix: don't crash when removing money from a trade

Index: trade.cpp
===================================================================
RCS file: /home/kde/kdegames/atlantik/libatlantic/trade.cpp,v
retrieving revision 1.17
retrieving revision 1.17.6.1
diff -u -d -r1.17 -r1.17.6.1
--- trade.cpp	14 Jul 2002 10:53:22 -0000	1.17
+++ trade.cpp	23 Dec 2002 02:03:57 -0000	1.17.6.1
@@ -74,9 +74,9 @@
 		}
 		else
 		{
-			delete t;
 			mTradeItems.removeRef(t);
 			emit itemRemoved(t);
+			t->deleteLater();
 		}
 	}
 	else if (estate && to)
@@ -115,9 +115,9 @@
 		}
 		else
 		{
-			delete t;
 			mTradeItems.removeRef(t);
 			emit itemRemoved(t);
+			t->deleteLater();
 		}
 	}
 	else if (from && to && money)
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.