Author: cazfi
Date: Thu Jun 11 23:18:08 2015
New Revision: 29161

URL: http://svn.gna.org/viewcvs/freeciv?rev=29161&view=rev
Log:
Free phase_timer on server exit

See patch #6090

Modified:
    branches/S2_5/server/srv_main.c

Modified: branches/S2_5/server/srv_main.c
URL: 
http://svn.gna.org/viewcvs/freeciv/branches/S2_5/server/srv_main.c?rev=29161&r1=29160&r2=29161&view=diff
==============================================================================
--- branches/S2_5/server/srv_main.c     (original)
+++ branches/S2_5/server/srv_main.c     Thu Jun 11 23:18:08 2015
@@ -1407,6 +1407,10 @@
   voting_free();
   adv_settlers_free();
   ai_timer_free();
+  if (game.server.phase_timer != NULL) {
+    timer_destroy(game.server.phase_timer);
+    game.server.phase_timer = NULL;
+  }
 
 #ifdef HAVE_FCDB
   if (srvarg.fcdb_enabled) {


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

Reply via email to