Author: cazfi
Date: Thu Jun 11 23:17:52 2015
New Revision: 29160

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

See patch #6090

Modified:
    branches/S2_6/server/srv_main.c

Modified: branches/S2_6/server/srv_main.c
URL: 
http://svn.gna.org/viewcvs/freeciv/branches/S2_6/server/srv_main.c?rev=29160&r1=29159&r2=29160&view=diff
==============================================================================
--- branches/S2_6/server/srv_main.c     (original)
+++ branches/S2_6/server/srv_main.c     Thu Jun 11 23:17:52 2015
@@ -1548,6 +1548,14 @@
   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;
+  }
+  if (game.server.save_timer != NULL) {
+    timer_destroy(game.server.save_timer);
+    game.server.save_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