On Tue, Apr 06, 2010 at 09:02:52PM +0000, Olexandr Sydorchuk wrote:
> In trunk here is /demos/reinit demo, did you call DestroyVideo() too?
> 
> Btw, `./reinit -d glx` was too hard for my freebsd and it crashed.

demos/reinit is meant to test for small memory / resource leaks after
AG_Destroy(). I've added a delay in the loop, but it's still very hard
on an X server. It never enters an event loop, so the windows are only
destroyed properly when the test is done.

> Avery Fay <[email protected]> writes:
> 
> > Hello,
> >
> > I usually like to start projects with clean valgrind output so that I can
> > easily detect if I've inadvertently leaked memory. The problem I'm having is
> > that even the simplest agar app is causing a lot of leak warnings from
> > valgrind. For example, I've attached the valgrind output from running the
> > demos/minimal program.
> >
> > Some of it probably isn't real like the X11 stuff, but I'm not sure about
> > the rest. Are these real leaks? Do I need to add something more than
> > AG_Destroy at the end of the program?
> >
> > Thanks,
> > Avery Fay
> >
> > _______________________________________________
> > Agar mailing list
> > [email protected]
> > http://libagar.org/lists.html
> 
> _______________________________________________
> Agar mailing list
> [email protected]
> http://libagar.org/lists.html
_______________________________________________
Agar mailing list
[email protected]
http://libagar.org/lists.html

Reply via email to