Author: sveinung Date: Wed May 10 10:19:54 2017 New Revision: 35487 URL: http://svn.gna.org/viewcvs/freeciv?rev=35487&view=rev Log: unitselect: don't initialize pix twice.
This fixes a memory leak. (Detectable with Valgrind.) Reported by Marko Lindqvist <cazfi> See gna bug #25246 Modified: branches/S2_5/client/gui-gtk-3.0/unitselect.c Modified: branches/S2_5/client/gui-gtk-3.0/unitselect.c URL: http://svn.gna.org/viewcvs/freeciv/branches/S2_5/client/gui-gtk-3.0/unitselect.c?rev=35487&r1=35486&r2=35487&view=diff ============================================================================== --- branches/S2_5/client/gui-gtk-3.0/unitselect.c (original) +++ branches/S2_5/client/gui-gtk-3.0/unitselect.c Wed May 10 10:19:54 2017 @@ -690,10 +690,6 @@ gtk_tree_store_append(GTK_TREE_STORE(store), it, NULL); /* Create a icon */ - pix = gdk_pixbuf_new(GDK_COLORSPACE_RGB, TRUE, 8, - tileset_full_tile_width(tileset), - tileset_full_tile_height(tileset)); - { struct canvas canvas_store = FC_STATIC_CANVAS_INIT; _______________________________________________ Freeciv-commits mailing list Freeciv-commits@gna.org https://mail.gna.org/listinfo/freeciv-commits