Commit 2c2568c3 authored by Filip Roséen's avatar Filip Roséen Committed by Marvin Scholz
Browse files

demux/playlist/itml: free_track: simplify



There is no need for FREENULL of the data-members when the whole
object is being deallocated directly after.
Signed-off-by: Marvin Scholz's avatarMarvin Scholz <epirat07@gmail.com>
parent 30d66a77
......@@ -366,13 +366,12 @@ static void free_track( track_elem_t *p_track )
if ( !p_track )
return;
FREENULL( p_track->name );
FREENULL( p_track->artist );
FREENULL( p_track->album );
FREENULL( p_track->genre );
FREENULL( p_track->trackNum );
FREENULL( p_track->location );
p_track->duration = 0;
free( p_track->name );
free( p_track->artist );
free( p_track->album );
free( p_track->genre );
free( p_track->trackNum );
free( p_track->location );
free( p_track );
}
......
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