Re: [g-a-devel]the maybe leak in libspi/impl_getSelection



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]