]> git.sesse.net Git - vlc/blobdiff - modules/misc/notify/xosd.c
Fix compilation (my fault).
[vlc] / modules / misc / notify / xosd.c
index 4e8fe32125cf84a2c18ae5e3ae2201b5fdb50e17..13c37582dc61cab82ff0254aad45e261e2d28738 100644 (file)
@@ -118,7 +118,7 @@ static int Open( vlc_object_t *p_this )
     if( getenv( "DISPLAY" ) == NULL )
     {
         msg_Err( p_intf, "no display, please set the DISPLAY variable" );
-        free( p_sys );
+        free( p_intf->p_sys );
         return VLC_EGENERIC;
     }
 
@@ -134,7 +134,7 @@ static int Open( vlc_object_t *p_this )
     if( p_intf->p_sys->p_osd == NULL )
     {
         msg_Err( p_intf, "couldn't initialize libxosd" );
-        free( p_sys );
+        free( p_intf->p_sys );
         return VLC_EGENERIC;
     }
 #else
@@ -142,7 +142,7 @@ static int Open( vlc_object_t *p_this )
     if( p_osd == NULL )
     {
         msg_Err( p_intf, "couldn't initialize libxosd" );
-        free( p_sys );
+        free( p_intf->p_sys );
         return VLC_EGENERIC;
     }