Re: Using memprof and gtk



Hello, I think Havoc explains this in the faq section of "Gnome
Application Development":

http://developer.gnome.org/doc/GGAD/GGAD.tar.gz

On Saturday 30 December, Arturo Tena wrote:
> 
> 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
> 
> 
> _______________________________________________
> gnome-devel-list mailing list
> gnome-devel-list gnome org
> http://mail.gnome.org/mailman/listinfo/gnome-devel-list

-- 
                __                                               
               / /  (_)__  __ ____  __                           
              / /__/ / _ \/ // /\ \/ /      ... The choice of a  
             /____/_/_//_/\__./ /_/\_\           GNU generation  




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]