Re: a question about gtkfontsel.c



Hi Victor,

xu victor wrote:
> I met some questions when I read the gdk.
> It is from gtkfontsel.c
> 
> I've found that 'temp_info.family' has been allocated some memory
> with g_strdup() and i can't  find where it was freed?

The memory is used by gtkfontsel to cache information about what fonts are available on your machine (in the global variable fontsel_info). It is not freed, but it does not get larger as your program runs either. So it is not really a leak.

John



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