Re: [g-a-devel]the maybe leak in libspi/impl_getSelection
- From: Michael Meeks <michael ximian com>
- To: Bolian Yin <bolian yin sun com>
- Cc: accessibility mailing list <gnome-accessibility-devel gnome org>
- Subject: Re: [g-a-devel]the maybe leak in libspi/impl_getSelection
- Date: 20 Aug 2002 12:53:40 +0100
Hi Bolian,
On Tue, 2002-08-20 at 11:37, Bolian Yin wrote:
> I notice that in libspi/text.c : impl_getSelction, the return string
> of "atk_text_get_selection" is not been used.
> while in impl_getText (and many other impls), the return string is
> copied and freed.
> So I wonder, is this designed and the implementation of
> "atk_text_get_selection" will take care of it?
Nope, it's a simple memory leak; we should g_free the result
immediately since it's not interesting.
Good catch;
Michael.
--
mmeeks gnu org <><, Pseudo Engineer, itinerant idiot
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]