commit d87221b58f114f406ec239f8cc47040a675b1570
parent 85e9aeba0c7615ca973161f5282d4d4f570af00f
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:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/src/dopewars.c b/src/dopewars.c
@@ -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;
}