Commit 0ace3b64 authored by Rémi Duraffort's avatar Rémi Duraffort

osd_simple: fix a potential null-deref (can only be triggered when OOM).

(cherry picked from commit 3b98bdf8)
Signed-off-by: default avatarRémi Duraffort <ivoire@videolan.org>
parent 7291c9eb
...@@ -504,7 +504,7 @@ int osd_parser_simpleOpen( vlc_object_t *p_this ) ...@@ -504,7 +504,7 @@ int osd_parser_simpleOpen( vlc_object_t *p_this )
return VLC_SUCCESS; return VLC_SUCCESS;
error: error:
msg_Err( p_menu, "parsing file failed (returned %d)", result ); msg_Err( p_this, "parsing file failed (returned %d)", result );
if( p_menu ) if( p_menu )
osd_MenuFree( p_menu ); osd_MenuFree( p_menu );
fclose( fd ); fclose( fd );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment