qtinternetradio/ui/src/irstationdetailsview.cpp
changeset 11 f683e24efca3
parent 5 0930554dc389
child 14 896e9dbc5f19
--- a/qtinternetradio/ui/src/irstationdetailsview.cpp	Fri Jun 11 13:30:40 2010 +0300
+++ b/qtinternetradio/ui/src/irstationdetailsview.cpp	Wed Jun 23 18:04:00 2010 +0300
@@ -67,7 +67,13 @@
     iBitRate->setPlainText(QString::number(bitrate) + QString("kbps"));
 
     iDescription->setPlainText(aPreset->description);
-    iNowPlayingUrl->setPlainText(aPreset->getURLsForBitrate(bitrate)->at(KChannelURLIndex));
+
+    QList<QString> *urlList = aPreset->getURLsForBitrate(bitrate);
+    if (urlList != NULL)
+    {
+        iNowPlayingUrl->setPlainText(urlList->at(KChannelURLIndex));
+    }
+    delete urlList;
 }
 
 /*