Skip to content

Commit

Permalink
Use clear_track_meta() when closing the module.
Browse files Browse the repository at this point in the history
  • Loading branch information
jonas-lundqvist committed May 8, 2015
1 parent 1b8eeac commit 2bada7a
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/spotify.c
Expand Up @@ -317,13 +317,7 @@ static void Close(vlc_object_t *obj)
vlc_mutex_destroy(&p_sys->audio_lock);
vlc_mutex_destroy(&p_sys->playlist_lock);

// TODO: Create a function for this when adding more meta data
if (p_sys->psz_meta_track)
free(p_sys->psz_meta_track);
if (p_sys->psz_meta_artist)
free(p_sys->psz_meta_artist);
if (p_sys->psz_meta_album)
free(p_sys->psz_meta_album);
clear_track_meta(p_sys);

free(p_sys->psz_uri);
free(p_sys);
Expand Down

0 comments on commit 2bada7a

Please sign in to comment.