From: Gustavo S. B. <gu...@gs...> - 2004-07-01 03:22:34
|
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 -- Gustavo Sverzut Barbieri --------------------------------------- Engenharia de Computacao 2001 - UNICAMP GPSL - Grupo Pro Software Livre Cell..: +55 (19) 9165 8010 Jabber: gsb...@ja... ICQ#: 17249123 GPG: 0xB640E1A2 @ wwwkeys.pgp.net |