diff --git a/modules/notify/notify.c b/modules/notify/notify.c index 64017cc8f8..d2d2c110ca 100644 --- a/modules/notify/notify.c +++ b/modules/notify/notify.c @@ -239,6 +239,7 @@ static void on_current_media_changed(vlc_player_t *player, GError *p_error = NULL; pix = gdk_pixbuf_new_from_file_at_scale( psz_arturl, 72, 72, TRUE, &p_error ); + free( psz_arturl ); } else /* else we show state-of-the art logo */ { @@ -260,8 +261,6 @@ static void on_current_media_changed(vlc_player_t *player, } } - free( psz_arturl ); - /* we need to replace '&' with '&' because '&' is a keyword of * notification-daemon parser */ const int i_len = strlen( psz_tmp );