]> git.sesse.net Git - vlc/blobdiff - modules/video_output/msw/events.c
Remove useless test before a free().
[vlc] / modules / video_output / msw / events.c
index 0c50caf4a38034c22298d3bc4242d4d4e663923d..975519fdbedbaa0a01ba7a53bc94fe71f4f8f569 100644 (file)
@@ -316,7 +316,7 @@ void E_(EventThread)( event_thread_t *p_event )
             var_Get( p_event->p_vout, "video-title", &val );
             if( !val.psz_string || !*val.psz_string ) /* Default video title */
             {
-                if( val.psz_string ) free( val.psz_string );
+                free( val.psz_string );
 
 #ifdef MODULE_NAME_IS_wingdi
                 val.psz_string = strdup( VOUT_TITLE " (WinGDI output)" );