Commit 7297d0a9 authored by Rémi Duraffort's avatar Rémi Duraffort

Fix compilation (my fault).

parent bfbd38a6
...@@ -118,7 +118,7 @@ static int Open( vlc_object_t *p_this ) ...@@ -118,7 +118,7 @@ static int Open( vlc_object_t *p_this )
if( getenv( "DISPLAY" ) == NULL ) if( getenv( "DISPLAY" ) == NULL )
{ {
msg_Err( p_intf, "no display, please set the DISPLAY variable" ); msg_Err( p_intf, "no display, please set the DISPLAY variable" );
free( p_sys ); free( p_intf->p_sys );
return VLC_EGENERIC; return VLC_EGENERIC;
} }
...@@ -134,7 +134,7 @@ static int Open( vlc_object_t *p_this ) ...@@ -134,7 +134,7 @@ static int Open( vlc_object_t *p_this )
if( p_intf->p_sys->p_osd == NULL ) if( p_intf->p_sys->p_osd == NULL )
{ {
msg_Err( p_intf, "couldn't initialize libxosd" ); msg_Err( p_intf, "couldn't initialize libxosd" );
free( p_sys ); free( p_intf->p_sys );
return VLC_EGENERIC; return VLC_EGENERIC;
} }
#else #else
...@@ -142,7 +142,7 @@ static int Open( vlc_object_t *p_this ) ...@@ -142,7 +142,7 @@ static int Open( vlc_object_t *p_this )
if( p_osd == NULL ) if( p_osd == NULL )
{ {
msg_Err( p_intf, "couldn't initialize libxosd" ); msg_Err( p_intf, "couldn't initialize libxosd" );
free( p_sys ); free( p_intf->p_sys );
return VLC_EGENERIC; return VLC_EGENERIC;
} }
......
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