From: Dennis S. <sy...@yo...> - 2004-07-01 10:18:54
|
I don't thrust garbage collectors in a unmanaged environment, sorry let's stick to the 'good' old memory model. I don't think it's good for speed either. And we really need that, however I must admit I have not investigated it. Cheers, Dennis On Thu, 2004-07-01 at 00:43 -0300, Gustavo Sverzut Barbieri wrote: > Em Thursday 01 July 2004 00:14, Duilio Javier Protti escreveu: > > I have removed temporarily the free() call from > > visual_video_free_buffer(), because we don't > > known if this is memory malloc'ed from us (in XMMS > > plugin this point to the pixels field of the > > SDL_ScreenSurface created by SDL on another thread, > > which can be even a hardware surface). > > -- Thanks to valgrind -- > > > > We need some flags inside the VisVideo that > > tells if the screenbuffer was created by us or > > not. > > What about using a garbage collector? There is a good one for gcc (-lgd). > It runs on any code... it replaces malloc() for a special one and make free() > have no effect > |