[vlc-commits] [Git][videolan/vlc][3.0.x] codec: webvtt: fix leak after list error recovery
François Cartegnie (@fcartegnie)
gitlab at videolan.org
Mon Sep 14 10:26:50 UTC 2026
François Cartegnie pushed to branch 3.0.x at VideoLAN / VLC
Commits:
a722106c by François Cartegnie at 2026-09-14T12:05:50+02:00
codec: webvtt: fix leak after list error recovery
fixes #28991
(cherry picked from commit e6f340c932082b99ed924c30d06499e8661d6219)
- - - - -
1 changed file:
- modules/codec/webvtt/CSSGrammar.y
Changes:
=====================================
modules/codec/webvtt/CSSGrammar.y
=====================================
@@ -614,9 +614,12 @@ declaration_list:
$$ = $1;
}
| decl_list declaration {
- $$ = $1;
- if( $$ )
+ if ($1) {
+ $$ = $1;
vlc_css_declarations_Append( $$, $2 );
+ } else {
+ $$ = $2;
+ }
}
| decl_list {
$$ = $1;
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/a722106c163000807c43188274b2deb6b64518a9
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/a722106c163000807c43188274b2deb6b64518a9
You're receiving this email because of your account on code.videolan.org. Manage all notifications: https://code.videolan.org/-/profile/notifications | Help: https://code.videolan.org/help
More information about the vlc-commits
mailing list