[MPlayer-dev-eng] [PATCH] leak fixes for loop mode
Diego Biurrun
diego at biurrun.de
Fri Jul 22 01:55:24 CEST 2005
On Sat, Feb 05, 2005 at 02:26:57PM +0800, Timothy Lee wrote:
>
> This patch fixes leaks which are noticeable when MPlayer runs in loop
> mode. The failure to clean up the data buffer used by Tremor after file
> detection loses 6.4 kbyte for every loop.
>
> diff -Naur -wbBE main-cvs/osdep/getch2.c main-leakfix/osdep/getch2.c
> --- main-cvs/osdep/getch2.c 2004-04-06 05:33:08.000000000 +0800
> +++ main-leakfix/osdep/getch2.c 2005-02-04 17:31:26.000000000 +0800
> @@ -73,6 +73,7 @@
> getch2_keys[getch2_key_db].code=code;
> ++getch2_key_db;
> /* printf("%s=%s\n",id,p); */
> + if (p != term_p) free(p);
> }
>
> static int success=0;
Is this hunk still relevant? The rest of the patch was applied.
Diego
More information about the MPlayer-dev-eng
mailing list