Fix ticket 3613 about memory leak

Ka-Hing Cheung khc at hxbc.us
Fri Oct 19 23:31:46 EDT 2007


On Fri, 2007-10-19 at 19:42 +0800, Bin Chen wrote:
> Hi,
> 
> I add some lins in pidgin_conv_destroy(), but the result unchanged,
> still shows about 100K leakage, the memory keep increasing as before,
> can anybody tell me how to fix it?
> 
>         gtk_widget_destroy(gtkconv->imhtml);
>         gtk_widget_destroy(gtkconv->tabby);
>         gtk_widget_destroy(gtkconv->menu_tabby);
>         gtk_widget_destroy(gtkconv->close);
>         gtk_widget_destroy(gtkconv->icon);
>         gtk_widget_destroy(gtkconv->tab_label);
>         gtk_widget_destroy(gtkconv->menu_icon);
>         gtk_widget_destroy(gtkconv->menu_label);
>         gtk_widget_destroy(gtkconv->lower_hbox);
>         gtk_widget_destroy(gtkconv->toolbar);

I think your best bet is running pidgin in valgrind with --leak-check,
then see where the leak is occuring.

-khc





More information about the Devel mailing list