Re: bug in testgtk.c in gtk+-1.1.2



> I think the bug is that the program tries to allocate memory with
> g_malloc() and to free it with free() rather than g_free(): when
> mem-check is enabled, they're not the same.

The same bug is present also in gimp/app/text_tool.c, where pointers
returned by text_get_field() (which uses g_malloc() or g_strdup()) are
freed with free().

--tml



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