tPlayer's Guns and Drugs arrays are now freed properly when finished with. - vaccinewars - be a doctor and try to vaccinate the world
(HTM) git clone git://src.adamsgaard.dk/vaccinewars
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit d87221b58f114f406ec239f8cc47040a675b1570
(DIR) parent 85e9aeba0c7615ca973161f5282d4d4f570af00f
(HTM) Author: Ben Webb <ben@salilab.org>
Date: Mon, 29 Jul 2002 18:20:04 +0000
Player's Guns and Drugs arrays are now freed properly when finished with.
Diffstat:
M src/dopewars.c | 2 ++
1 file changed, 2 insertions(+), 0 deletions(-)
---
(DIR) diff --git a/src/dopewars.c b/src/dopewars.c
t@@ -888,6 +888,8 @@ GSList *RemovePlayer(Player *Play, GSList *First)
ClearList(&(Play->SpyList));
ClearList(&(Play->TipList));
g_free(Play->Name);
+ g_free(Play->Guns);
+ g_free(Play->Drugs);
g_free(Play);
return First;
}