]> git.sesse.net Git - vlc/commitdiff
es_out.c: fixed a slight memleak in "now playing" handling.
authorSigmund Augdal Helberg <sigmunau@videolan.org>
Thu, 2 Feb 2006 11:59:15 +0000 (11:59 +0000)
committerSigmund Augdal Helberg <sigmunau@videolan.org>
Thu, 2 Feb 2006 11:59:15 +0000 (11:59 +0000)
This one is slightly dangerous as it can happen over and over again during
normal operation.

src/input/es_out.c

index 02b6d07d36907fc3303468eea8ef204844704e36..c02a8711e982745432e85a1fb13491fa2b36af98 100644 (file)
@@ -626,6 +626,7 @@ static void EsOutProgramMeta( es_out_t *out, int i_group, vlc_meta_t *p_meta )
     }
     if( psz_now_playing )
     {
+        if( p_pgrm->psz_now_playing ) free( p_pgrm->psz_now_playing );
         p_pgrm->psz_now_playing = strdup(psz_now_playing);
 
         if( p_sys->p_pgrm == p_pgrm )