Author: cazfi
Date: Thu Jan 15 18:44:56 2015
New Revision: 27702

URL: http://svn.gna.org/viewcvs/freeciv?rev=27702&view=rev
Log:
Fixed memory leak when checking if unit can pillage.

See bug #23170

Modified:
    branches/S2_5/common/unit.c

Modified: branches/S2_5/common/unit.c
URL: 
http://svn.gna.org/viewcvs/freeciv/branches/S2_5/common/unit.c?rev=27702&r1=27701&r2=27702&view=diff
==============================================================================
--- branches/S2_5/common/unit.c (original)
+++ branches/S2_5/common/unit.c Thu Jan 15 18:44:56 2015
@@ -1206,6 +1206,8 @@
                  * not been here if conflicting one is. */
                 cannot_pillage = TRUE;
               }
+
+              tile_virtual_destroy(vtile);
             }
           }
 
@@ -1237,6 +1239,8 @@
                  * not been here if conflicting one is. */
                 cannot_pillage = TRUE;
               }
+
+              tile_virtual_destroy(vtile);
             }
           }
 


_______________________________________________
Freeciv-commits mailing list
Freeciv-commits@gna.org
https://mail.gna.org/listinfo/freeciv-commits

Reply via email to