diff --git a/src/gui/upnpbrowser.cpp b/src/gui/upnpbrowser.cpp index 0b2643188..a5453031d 100644 --- a/src/gui/upnpbrowser.cpp +++ b/src/gui/upnpbrowser.cpp @@ -598,23 +598,18 @@ bool CUpnpBrowserGui::selectItem(std::string id) bool rchanged = true; neutrino_msg_t msg; neutrino_msg_data_t data; - std::vector *entries; + std::vector *entries = NULL; unsigned int index, selected, dirnum; index=0; selected=0; dirnum=0; - entries=NULL; while (loop) { updateTimes(); if (rchanged) { - if (entries) - delete entries; - entries=NULL; - std::listattribs; std::listresults; std::list::iterator i;