Author: cazfi
Date: Mon Feb 2 04:44:38 2015
New Revision: 27929
URL: http://svn.gna.org/viewcvs/freeciv?rev=27929&view=rev
Log:
Fixed memory leak in can_extra_be_removed()
See bug #23225
Modified:
branches/S2_6/common/extras.c
Modified: branches/S2_6/common/extras.c
URL:
http://svn.gna.org/viewcvs/freeciv/branches/S2_6/common/extras.c?rev=27929&r1=27928&r2=27929&view=diff
==============================================================================
--- branches/S2_6/common/extras.c (original)
+++ branches/S2_6/common/extras.c Mon Feb 2 04:44:38 2015
@@ -455,6 +455,8 @@
if (player_can_build_extra(pextra, city_owner(pcity), vtile)) {
/* No need to worry about conflicting extras - extra would had
* not been here if conflicting one is. */
+ tile_virtual_destroy(vtile);
+
return FALSE;
}
_______________________________________________
Freeciv-commits mailing list
[email protected]
https://mail.gna.org/listinfo/freeciv-commits