Complete.Org: Mailing Lists: Archives: freeciv-dev: October 2005:
[Freeciv-Dev] (PR#14180) another tileset memory leak
Home

[Freeciv-Dev] (PR#14180) another tileset memory leak

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
Subject: [Freeciv-Dev] (PR#14180) another tileset memory leak
From: "Jason Short" <jdorje@xxxxxxxxxxxxxxxxxxxxx>
Date: Mon, 3 Oct 2005 21:42:41 -0700
Reply-to: bugs@xxxxxxxxxxx

<URL: http://bugs.freeciv.org/Ticket/Display.html?id=14180 >

==28603== 2928 (2252 direct, 676 indirect) bytes in 33 blocks are 
definitely lost in loss record 134 of 159
==28603==    at 0x1B8FF8A6: malloc (vg_replace_malloc.c:149)
==28603==    by 0x8095D9B: fc_real_malloc (mem.c:75)
==28603==    by 0x8095DDD: fc_real_realloc (mem.c:92)
==28603==    by 0x8089985: sprite_vector_reserve (specvec.h:96)
==28603==    by 0x808ABD4: tileset_setup_nation_flag (tilespec.c:2659)
==28603==    by 0x80799D3: handle_ruleset_nation (packhand.c:2405)
==28603==    by 0x807A973: client_handle_packet (packhand_gen.c:279)
==28603==    by 0x8058CC5: handle_packet_input (civclient.c:390)
==28603==    by 0x805D363: input_from_server (clinet.c:342)
==28603==    by 0x81259E2: get_net_input (gui_main.c:1547)
==28603==    by 0x1BBF1168: ??? (gdkevents.c:966)
==28603==    by 0x1BDA6B66: (within /usr/lib/libglib-2.0.so.0.800.2)
==28603==    by 0x1BD7D420: g_main_context_dispatch (in 
/usr/lib/libglib-2.0.so.0.800.2)
==28603==    by 0x1BD80686: (within /usr/lib/libglib-2.0.so.0.800.2)
==28603==    by 0x1BD80BD7: g_main_loop_run (in 
/usr/lib/libglib-2.0.so.0.800.2)==28603==    by 0x1BA2B988: gtk_main 
(gtkmain.c:1009)
==28603==    by 0x8124CAB: ui_main (gui_main.c:1211)
==28603==    by 0x8058BC9: main (civclient.c:351)

Index: client/tilespec.c
===================================================================
RCS file: /home/freeciv/CVS/freeciv/client/tilespec.c,v
retrieving revision 1.327
diff -p -u -r1.327 tilespec.c
--- client/tilespec.c   3 Oct 2005 18:15:10 -0000       1.327
+++ client/tilespec.c   4 Oct 2005 04:40:37 -0000
@@ -4344,6 +4344,7 @@ void tileset_free_tiles(struct tileset *
   sprite_vector_free(&t->sprites.colors.overlays);
   sprite_vector_free(&t->sprites.explode.unit);
   sprite_vector_free(&t->sprites.nation_flag);
+  sprite_vector_free(&t->sprites.nation_shield);
   sprite_vector_free(&t->sprites.citybar.occupancy);
 }
 

[Prev in Thread] Current Thread [Next in Thread]