Commit eda1f5fe authored by Francois Cartegnie's avatar Francois Cartegnie

Qt: info panels: fix NULL dereference (#5368 fix).

parent 4998d377
...@@ -236,9 +236,9 @@ void MetaPanel::update( input_item_t *p_item ) ...@@ -236,9 +236,9 @@ void MetaPanel::update( input_item_t *p_item )
/* URL */ /* URL */
psz_meta = input_item_GetURL( p_item ); psz_meta = input_item_GetURL( p_item );
if( !EMPTY_STR( psz_meta ) && strcmp( psz_meta, currentURL ) ) if( !EMPTY_STR( psz_meta ) && currentURL != psz_meta )
{ {
free( currentURL ); currentURL = strdup( psz_meta ); currentURL = psz_meta;
lblURL->setText( "<a href='" + qfu( psz_meta ) + "'>" + lblURL->setText( "<a href='" + qfu( psz_meta ) + "'>" +
qfu( psz_meta ).remove( QRegExp( ".*://") ) + "</a>" ); qfu( psz_meta ).remove( QRegExp( ".*://") ) + "</a>" );
......
...@@ -86,7 +86,7 @@ private: ...@@ -86,7 +86,7 @@ private:
CoverArtLabel *art_cover; CoverArtLabel *art_cover;
QLabel *lblURL; QLabel *lblURL;
char *currentURL; QString currentURL;
public slots: public slots:
void update( input_item_t * ); void update( input_item_t * );
......
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