Re: Very small Pango patch



Zack Rusin <zackrat att net> writes:

> Hi,
> 
> I've spent some time today looking at libgnomecanvas. While profiling the 
> demo I've found a leak in Pango. It's actually quite subtle. In 
> libgnomecanvas a PangoFontDescription is allocated and freed through 
> pango_font_description_from_string (in gnome_canvas_text_set_property) and 
> pango_font_description_free respectively. The description_free function 
> checks the static_family variable before freeing the family_name, now, the 
> description_from_string doesn't initialize that variable due to which 
> sometimes it leaks (and sometimes it doesn't ;) ). So here's the nobrainer 
> type of patch.

Fix is in CVS now. Thanks,

                                        Owen



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