Author: cazfi
Date: Sat Nov  7 18:06:34 2015
New Revision: 30470

URL: http://svn.gna.org/viewcvs/freeciv?rev=30470&view=rev
Log:
Fixed double pixbuf unref problem in gtk2-client

Reported by Jacob Nevins <jtn>

See bug #24010

Modified:
    branches/S2_5/client/gui-gtk-2.0/editgui.c

Modified: branches/S2_5/client/gui-gtk-2.0/editgui.c
URL: 
http://svn.gna.org/viewcvs/freeciv/branches/S2_5/client/gui-gtk-2.0/editgui.c?rev=30470&r1=30469&r2=30470&view=diff
==============================================================================
--- branches/S2_5/client/gui-gtk-2.0/editgui.c  (original)
+++ branches/S2_5/client/gui-gtk-2.0/editgui.c  Sat Nov  7 18:06:34 2015
@@ -872,7 +872,8 @@
     pixbuf = sprite_get_pixbuf(sprite);
     if (pixbuf != NULL) {
       gtk_list_store_set(store, &iter, TVS_COL_IMAGE, pixbuf, -1);
-      g_object_unref(G_OBJECT(pixbuf));
+      /* pixbuf unref will happen automatically when the sprite it was gotten
+       * from gets freed. */
     }
   } tile_special_type_iterate_end;
 


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

Reply via email to