Complete.Org: Mailing Lists: Archives: freeciv-dev: February 2002:
[Freeciv-Dev] [Patch] Remove destroy_worklist()
Home

[Freeciv-Dev] [Patch] Remove destroy_worklist()

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: freeciv development list <freeciv-dev@xxxxxxxxxxx>
Subject: [Freeciv-Dev] [Patch] Remove destroy_worklist()
From: Raimar Falke <hawk@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Thu, 21 Feb 2002 15:46:52 +0100
Reply-to: rf13@xxxxxxxxxxxxxxxxxxxxxx

destroy_worklist is used in the source. The only class of objects
which have dynamic worklists are cities. So the line
  free(pcity->worklist);
in game_remove_city could be replaced with a call to
destroy_worklist. But IMHO the free is ok.

        Raimar

-- 
 email: rf13@xxxxxxxxxxxxxxxxx
 "The two rules for success in life are:
  1) Never tell them everything you know."

Attachment: destroy_worklist1.diff
Description: Text document


[Prev in Thread] Current Thread [Next in Thread]