[vlc-commits] [Git][videolan/vlc][master] codec: webvtt: fix leak after list error recovery
François Cartegnie (@fcartegnie)
gitlab at videolan.org
Thu Sep 10 13:55:30 UTC 2026
François Cartegnie pushed to branch master at VideoLAN / VLC
Commits:
e6f340c9 by François Cartegnie at 2026-09-10T15:26:59+02:00
codec: webvtt: fix leak after list error recovery
fixes #28991
- - - - -
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/e6f340c932082b99ed924c30d06499e8661d6219
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/e6f340c932082b99ed924c30d06499e8661d6219
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