[MPlayer-advusers] [BUG] Memory leak in vo_vesa with -fixed-vo

Vladimir Voroshilov voroshil at gmail.com
Fri Feb 15 20:07:59 CET 2008


Hi, All

I think, i have found memory leak in vo_vesa driver when mplayer is
used with -fixed-vo.

Reason: multiple call to vbeInit with LRMI_alloc_real inside it (one
call per one playtree entry),
but correspodding vbeDestroy  with LRMI_free_real is called only once
(at mplayer exit).

Error happens only in fixed-vo mode, because in usual mode mplayer
calls vbeDestroy for each playtree entry
(and thus each vbeInit correspods to one vbeDestroy).

Error is obvious after applying attached patch to vbe.c from vesautils.

With memory leak i can play in fixed-vo mode only 103 or 126 etries
from playlist (depending on used hardware).
After playing last entry from above region mplayer shows "Out of DOS
memory" error for each subsequent entries until playlist ends.

If "-playlist" used together with "-loop 0" only "kill -9" helps me to
restart mplayer (this is different issue, imho), "quit" slave through
input fifo does not work.

P.S. not patch, so bugreport posted here.

-- 
Regards,
Vladimir Voroshilov mailto:voroshil at gmail.com
JID: voroshil at gmail.com, voroshil at jabber.ru
ICQ: 95587719
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: debug_printf.diff
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-advusers/attachments/20080216/da47e371/attachment.txt>


More information about the MPlayer-advusers mailing list