Re: for those who care about GNOME^w glib applications.
On Wed, Mar 22, 2006 at 11:29:01AM -0300, Gustavo Franco wrote:
> FYI, GMemChunk (old and deprecated by the upstream) was reimplemented to
> use GSlice, so no need to change or rebuild code to be affected due to buggy
> code. I don't know exactly why asking GSlice to force allocate and free memory
> through "standard malloc" solves the problem, maybe someone else can
> clarify this point.
Because those applications are abusing the API and make assumptions
about how some pieces of memory were allocated. More specifically, they
think that they can call g_free() (or equivalent) directly instead of
the appropriate API function. With the introduction of GSlice that is no
longer the case.
Gabor
--
---------------------------------------------------------
MTA SZTAKI Computer and Automation Research Institute
Hungarian Academy of Sciences
---------------------------------------------------------
Reply to: