Author: cazfi
Date: Mon Feb  9 06:21:43 2015
New Revision: 28045

URL: http://svn.gna.org/viewcvs/freeciv?rev=28045&view=rev
Log:
Free gtk2-client's custom citydlg info styles when citydlg system is closed,
for example when disconnecting from server.

See bug #23234

Modified:
    branches/S2_4/client/gui-gtk-2.0/citydlg.c

Modified: branches/S2_4/client/gui-gtk-2.0/citydlg.c
URL: 
http://svn.gna.org/viewcvs/freeciv/branches/S2_4/client/gui-gtk-2.0/citydlg.c?rev=28045&r1=28044&r2=28045&view=diff
==============================================================================
--- branches/S2_4/client/gui-gtk-2.0/citydlg.c  (original)
+++ branches/S2_4/client/gui-gtk-2.0/citydlg.c  Mon Feb  9 06:21:43 2015
@@ -541,14 +541,21 @@
 *****************************************************************/
 void popdown_all_city_dialogs(void)
 {
+  int i;
+
   if (!city_dialogs_have_been_initialised) {
     return;
   }
+
   while (dialog_list_size(dialog_list)) {
     close_city_dialog(dialog_list_get(dialog_list, 0));
   }
   dialog_list_destroy(dialog_list);
-  
+
+  for (i = 0; i < NUM_INFO_STYLES; i++) {
+    g_object_unref(info_label_style[i]);
+  }
+
   city_dialogs_have_been_initialised = FALSE;
 }
 


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

Reply via email to