[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Pingus-CVS] CVS: Games/Pingus/src multiplayer_game.cxx,1.4,1.5
From: |
torangan |
Subject: |
[Pingus-CVS] CVS: Games/Pingus/src multiplayer_game.cxx,1.4,1.5 |
Date: |
20 Jun 2002 12:36:58 -0000 |
Update of /usr/local/cvsroot/Games/Pingus/src
In directory dark:/tmp/cvs-serv15899
Modified Files:
multiplayer_game.cxx
Log Message:
- no need to enforce memory leaks
- evtenualle we should initialize the pointers to 0 so that it would be safe
to delete them in the catch block in any case
Index: multiplayer_game.cxx
===================================================================
RCS file: /usr/local/cvsroot/Games/Pingus/src/multiplayer_game.cxx,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- multiplayer_game.cxx 20 Jun 2002 12:22:51 -0000 1.4
+++ multiplayer_game.cxx 20 Jun 2002 12:36:56 -0000 1.5
@@ -139,6 +139,10 @@
}
delete plf;
+ delete controller1;
+ delete controller2;
+ delete controller3;
+ delete controller4;
} catch (...) {
std::cout << "MultiplayerGame: Something went wrong and we have probally a
memory leak." << std::endl;
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Pingus-CVS] CVS: Games/Pingus/src multiplayer_game.cxx,1.4,1.5,
torangan <=