[vlc-commits] [Git][videolan/vlc][master] canvas: fix fmt leak

Steve Lhomme (@robUx4) gitlab at videolan.org
Wed Oct 8 10:54:18 UTC 2025



Steve Lhomme pushed to branch master at VideoLAN / VLC


Commits:
cc140332 by Johannes Kauffmann at 2025-10-08T10:27:38+00:00
canvas: fix fmt leak

- - - - -


1 changed file:

- modules/video_filter/canvas.c


Changes:

=====================================
modules/video_filter/canvas.c
=====================================
@@ -339,6 +339,7 @@ static int Activate( filter_t *p_filter )
     fmt.video.i_height = p_filter->fmt_in.video.i_height * fmt.video.i_visible_height / p_filter->fmt_in.video.i_visible_height;
 
     filter_chain_Reset( p_sys->p_chain, &p_filter->fmt_in, p_filter->vctx_in, &fmt );
+    es_format_Clean( &fmt );
     /* Append scaling module */
     int ret = filter_chain_AppendConverter( p_sys->p_chain, NULL );
     if ( ret != VLC_SUCCESS )



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/cc140332997025b835172c14adb020b8b7e42bf1

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/cc140332997025b835172c14adb020b8b7e42bf1
You're receiving this email because of your account on code.videolan.org.


VideoLAN code repository instance


More information about the vlc-commits mailing list