[Gambas-devel] Gambas Memory leak ... (?!)

Benoit Minisini gambas at ...1...
Wed Jan 21 02:27:58 CET 2009


On mercredi 21 janvier 2009, Benoit Minisini wrote:
> On mercredi 21 janvier 2009, Gareth Bult wrote:
> > Ok,
> >
> > I can tell you with 100% accuracy now where the problem is ..
> > GB.ReturnObject(IMAGE.Create(THIS->w,THIS->h,GB_IMAGE_BGR,THIS->frame));
> >
> > I replaced the Gambas with;
> >
> >   'pic.Picture = $device.Image.Picture
> >   img = $device.Image
> >
> > To remove the picture conversion - no change.
> >
> > Then I replaced;
> >
> > 	GB.ReturnNull();
> > 	//GB.ReturnObject(IMAGE.Create(THIS->w,THIS->h,GB_IMAGE_BGR,THIS->frame)
> >);
> >
> > Memory usage is now 100% stable.
> >
> > :)
> >
> > Gareth.
>
> I have identified where the memory is leaked in gb.image. Now I must fix
> it....

OK, the memory leaks are fixed in revision #1806 (there were two memory 
leaks!)

-- 
Benoit Minisini




More information about the Devel mailing list