Bug#291130: libgtk2.0-0: libgtk2 doesn't free memory from
destroyed widgets
DaVinci
DaVinci <davinci@escomposlinux.org>, 291130@bugs.debian.org
Tue, 18 Jan 2005 23:43:02 +0100
Package: libgtk2.0-0
Version: 2.4.14-2
Severity: important
Hi.
Look at this code:
-------
#include <gtk/gtk.h>
int main(int argc, char** argv){
GtkWidget* window;
gtk_init(&argc, &argv);
while(TRUE){
window = gtk_window_new(GTK_WINDOW_TOPLEVEL);
gtk_widget_show_all(window);
gtk_object_destroy(GTK_OBJECT(window));
}
gtk_main();
return 0;
}
-------
Why libgtk2 doesn't free memory from destroyed window in each loop
iteration? I think this problem is an important bug, so I label it. I
have an application that creates and destroys windows constantly, and
with this bug, it eats all memory and swap, slowing system until
freeze.
Greets.
David
-- System Information:
Debian Release: 3.1
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'testing')
Architecture: i386 (i686)
Kernel: Linux 2.6.7
Locale: LANG=es_ES.UTF-8@euro, LC_CTYPE=es_ES.UTF-8@euro (charmap=UTF-8)
Versions of packages libgtk2.0-0 depends on:
ii libatk1.0-0 1.8.0-4 The ATK accessibility toolkit
ii libc6 2.3.2.ds1-20 GNU C Library: Shared libraries an
ii libfontconfig1 2.2.3-4 generic font configuration library
ii libfreetype6 2.1.7-2.3 FreeType 2 font engine, shared lib
ii libglib2.0-0 2.6.1-2 The GLib library of C routines
ii libgtk2.0-0 2.4.14-2 The GTK+ graphical user interface
ii libgtk2.0-bin 2.4.14-2 The programs for the GTK+ graphica
ii libgtk2.0-common 2.4.14-2 Common files for the GTK+ graphica
ii libjpeg62 6b-9 The Independent JPEG Group's JPEG
ii libpango1.0-0 1.6.0-3 Layout and rendering of internatio
ii libpng12-0 1.2.8rel-1 PNG library - runtime
ii libtiff4 3.7.1-1 Tag Image File Format (TIFF) libra
ii libx11-6 4.3.0.dfsg.1-10 X Window System protocol client li
ii libxcursor1 1.1.3-1 X cursor management library
ii libxext6 4.3.0.dfsg.1-10 X Window System miscellaneous exte
ii libxft2 2.1.2-6 FreeType-based font drawing librar
ii libxi6 4.3.0.dfsg.1-10 X Window System Input extension li
ii libxrandr2 4.3.0.dfsg.1-10 X Window System Resize, Rotate and
ii libxrender1 0.8.3-7 X Rendering Extension client libra
ii xlibs 4.3.0.dfsg.1-10 X Keyboard Extension (XKB) configu
ii zlib1g 1:1.2.2-4 compression library - runtime
-- no debconf information