[MPlayer-cvslog] r38377 - trunk/mplayer.c
reimar
subversion at mplayerhq.hu
Fri Aug 26 14:39:39 EEST 2022
Author: reimar
Date: Fri Aug 26 14:39:39 2022
New Revision: 38377
Log:
mplayer.c: uninit existing filter chain on reinit.
Fixes memleak (trac issue #2390)
Modified:
trunk/mplayer.c
Modified: trunk/mplayer.c
==============================================================================
--- trunk/mplayer.c Fri Aug 26 14:36:55 2022 (r38376)
+++ trunk/mplayer.c Fri Aug 26 14:39:39 2022 (r38377)
@@ -2347,6 +2347,7 @@ int reinit_video_chain(void)
current_module = "init_video_filters";
{
char *vf_arg[] = { "_oldargs_", (char *)mpctx->video_out, NULL };
+ if (sh_video->vfilter) vf_uninit_filter_chain(sh_video->vfilter);
sh_video->vfilter = vf_open_filter(NULL, "vo", vf_arg);
}
#ifdef CONFIG_MENU
More information about the MPlayer-cvslog
mailing list