Re: leak in gconf_engine_get_full



on 10/13/00 7:16 AM, Havoc Pennington at hp redhat com wrote:

> I don't have the code available to look at right now. The public
> gconf_engine_get() API is supposed to return a value owned by the
> caller (the engine doesn't hold any pointers to values that I know
> of). So given that information, if you can figure out whether it's
> broken and do a patch please do. I'll look at it when I'm back home on
> Sunday.

OK. I figured out part of the problem.

The leak is in get_nocopy in wrappers/gtk/gconf-client.c. It seems that in
some cases there's no cache to take ownership of the value. There's nothing
in the code that handles this case, so we end up leaking the value.

Maybe this is really a Nautilus bug?

    -- Darin





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