diff --git a/src/gui/upnpbrowser.cpp b/src/gui/upnpbrowser.cpp index a469f5e65..9f938a8c2 100644 --- a/src/gui/upnpbrowser.cpp +++ b/src/gui/upnpbrowser.cpp @@ -83,8 +83,8 @@ CUpnpBrowserGui::CUpnpBrowserGui() image = NULL; sigc::slot0 reinit = sigc::mem_fun(this, &CUpnpBrowserGui::Init); - CNeutrinoApp::getInstance()->OnAfterSetupFonts.connect(reinit); - CFrameBuffer::getInstance()->OnAfterSetPallette.connect(reinit); + sigFonts = CNeutrinoApp::getInstance()->OnAfterSetupFonts.connect(reinit); + sigPall = CFrameBuffer::getInstance()->OnAfterSetPallette.connect(reinit); } void CUpnpBrowserGui::Init() @@ -164,12 +164,16 @@ void CUpnpBrowserGui::Init() CUpnpBrowserGui::~CUpnpBrowserGui() { + sigFonts.disconnect(); + sigPall.disconnect(); + delete m_socket; if (dline){ delete dline; dline = NULL; } - if (image) + if (image){ delete image, image = NULL; + } } int CUpnpBrowserGui::exec(CMenuTarget* parent, const std::string & /*actionKey*/)