Complete.Org: Mailing Lists: Archives: freeciv-dev: March 2005:
[Freeciv-Dev] (PR#12599) gtk2: file selection memory leak in 2.0
Home

[Freeciv-Dev] (PR#12599) gtk2: file selection memory leak in 2.0

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
Subject: [Freeciv-Dev] (PR#12599) gtk2: file selection memory leak in 2.0
From: "Jason Short" <jdorje@xxxxxxxxxxxxxxxxxxxxx>
Date: Tue, 22 Mar 2005 19:18:26 -0800
Reply-to: bugs@xxxxxxxxxxx

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

==28436== 21972 (156 direct, 21816 indirect) bytes in 3 blocks are 
definitely lost in loss record 148 of 164
==28436==    at 0x1B904F75: calloc (vg_replace_malloc.c:175)
==28436==    by 0x1BD81ACE: g_malloc0 (in /usr/lib/libglib-2.0.so.0.600.3)
==28436==    by 0x1BD37B75: g_type_create_instance (in 
/usr/lib/libgobject-2.0.so.0.600.3)
==28436==    by 0x1BD248FE: (within /usr/lib/libgobject-2.0.so.0.600.3)
==28436==    by 0x1BD240CD: g_object_newv (in 
/usr/lib/libgobject-2.0.so.0.600.3)
==28436==    by 0x1BD2474F: g_object_new_valist (in 
/usr/lib/libgobject-2.0.so.0.600.3)
==28436==    by 0x1BD23DBA: g_object_new (in 
/usr/lib/libgobject-2.0.so.0.600.3)
==28436==    by 0x1BC94A99: gdk_pixbuf_new_from_data (in 
/usr/lib/libgdk_pixbuf-2.0.so.0.600.2)
==28436==    by 0x1BC9AC01: gdk_pixbuf_from_pixdata (in 
/usr/lib/libgdk_pixbuf-2.0.so.0.600.2)
==28436==    by 0x1BC9BD30: gdk_pixbuf_new_from_inline (in 
/usr/lib/libgdk_pixbuf-2.0.so.0.600.2)
==28436==    by 0x1B9F3511: (within /usr/lib/libgtk-x11-2.0.so.0.600.2)
==28436==    by 0x1BD37A59: g_type_create_instance (in 
/usr/lib/libgobject-2.0.so.0.600.3)
==28436==    by 0x1BD248FE: (within /usr/lib/libgobject-2.0.so.0.600.3)
==28436==    by 0x1BD240CD: g_object_newv (in 
/usr/lib/libgobject-2.0.so.0.600.3)
==28436==    by 0x1BD2489A: g_object_new_valist (in 
/usr/lib/libgobject-2.0.so.0.600.3)
==28436==    by 0x1BD23DBA: g_object_new (in 
/usr/lib/libgobject-2.0.so.0.600.3)
==28436==    by 0x1B9F4799: gtk_file_selection_new (in 
/usr/lib/libgtk-x11-2.0.so.0.600.2)
==28436==    by 0x80FF784: create_file_selection (connectdlg.c:101)



==28436== 12420 bytes in 1 blocks are possibly lost in loss record 149 
of 164
==28436==    at 0x1B90459D: malloc (vg_replace_malloc.c:130)
==28436==    by 0x1BD81C15: g_try_malloc (in 
/usr/lib/libglib-2.0.so.0.600.3)
==28436==    by 0x1BC9AD70: gdk_pixbuf_from_pixdata (in 
/usr/lib/libgdk_pixbuf-2.0.so.0.600.2)
==28436==    by 0x1BC9BD30: gdk_pixbuf_new_from_inline (in 
/usr/lib/libgdk_pixbuf-2.0.so.0.600.2)
==28436==    by 0x1B9F3656: (within /usr/lib/libgtk-x11-2.0.so.0.600.2)
==28436==    by 0x1BD37A59: g_type_create_instance (in 
/usr/lib/libgobject-2.0.so.0.600.3)
==28436==    by 0x1BD248FE: (within /usr/lib/libgobject-2.0.so.0.600.3)
==28436==    by 0x1BD240CD: g_object_newv (in 
/usr/lib/libgobject-2.0.so.0.600.3)
==28436==    by 0x1BD2489A: g_object_new_valist (in 
/usr/lib/libgobject-2.0.so.0.600.3)
==28436==    by 0x1BD23DBA: g_object_new (in 
/usr/lib/libgobject-2.0.so.0.600.3)
==28436==    by 0x1B9F4799: gtk_file_selection_new (in 
/usr/lib/libgtk-x11-2.0.so.0.600.2)
==28436==    by 0x80FF784: create_file_selection (connectdlg.c:101)

Looks like there's no code that frees it.  If I keep loading and leaving 
a game I can get a vast amount of leaked memory:

==28456== 172011 (824 direct, 171187 indirect) bytes in 16 blocks are 
definitely lost in loss record 132 of 165

-jason





[Prev in Thread] Current Thread [Next in Thread]
  • [Freeciv-Dev] (PR#12599) gtk2: file selection memory leak in 2.0, Jason Short <=