Using memprof and gtk
- From: Arturo Tena <arturo directmail org>
- To: <gnome-devel-list gnome org>
- Cc: <arturo directmail org>
- Subject: Using memprof and gtk
- Date: Sat, 30 Dec 2000 10:47:54 -0600 (CST)
Hello!
I'm using memprof to get leaked memory from my GNOME programs. But I'm
suprised that memprof 0.3.0 shows a leaked function in the next simple
GTK+ program:
#include <gtk/gtk.h>
static gint
delete_event_cb (GtkWidget * window, GdkEventAny * e, gpointer data)
{
gtk_main_quit ();
return FALSE;
}
int
main (int argc, char *argv[])
{
GtkWidget *window;
gtk_init (&argc, &argv);
window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
gtk_signal_connect (GTK_OBJECT (window),
"delete_event",
GTK_SIGNAL_FUNC (delete_event_cb), NULL);
gtk_widget_show_all (window);
gtk_main ();
printf ("get leaks\n");
getchar ();
return 0;
}
Clicking on "Leaks" button after the message "get leaks" appeare, it shows
the function "gdk_im_real_open" having leaked 13 bytes:
Leaked 0x8052b60 (13 bytes)
(???)
(???)
(???)
(???)
gdk_im_real_open(): (null):0
gdk_im_open(): (null):0
gdk_init_check(): (null):0
gtk_init_check(): (null):0
gtk_init(): (null):0
main(): /home/arturo/t/b.c:15
__libc_start_main():
/usr/src/bs/BUILD/glibc-2.1.92/csu/../sysdeps/generic/libc-start.c:111
_start(): (null):0
Why does happen? Am I missing something?
Thank you in advance!
Saludos!
Greetings!
--
Name: Arturo Tena
email: arturo directmail org
ICQ: 63292893
[Date Prev][
Date Next] [Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]