From 2acf440253bec8ae3e28c355ab357362fa3c138b Mon Sep 17 00:00:00 2001 From: Thilo Graf Date: Wed, 15 Feb 2012 18:21:36 +0000 Subject: [PATCH] neutrino: remove possible memleaks sc git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-beta@2098 e54a6e83-5905-42d5-8d5c-058d10e6a962 Origin commit data ------------------ Commit: https://github.com/neutrino-images/ni-neutrino/commit/d31b1fe29ddcef43688a7c51ba8c5b25d7911fbd Author: Thilo Graf Date: 2012-02-15 (Wed, 15 Feb 2012) Origin message was: ------------------ *neutrino: remove possible memleaks sc git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-beta@2098 e54a6e83-5905-42d5-8d5c-058d10e6a962 --- src/neutrino.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/neutrino.cpp b/src/neutrino.cpp index b2c61fc01..ebbe7ec4c 100644 --- a/src/neutrino.cpp +++ b/src/neutrino.cpp @@ -2058,6 +2058,7 @@ void CNeutrinoApp::RealRun(CMenuWidget &mainMenu) CScreenShot * sc = new CScreenShot("", (CScreenShot::screenshot_format_t)g_settings.screenshot_format); sc->MakeFileName(CZapit::getInstance()->GetCurrentChannelID()); sc->Start(); + delete sc; } } else if( msg == (neutrino_msg_t) g_settings.key_lastchannel ) { @@ -2474,6 +2475,7 @@ _repeat: sc->EnableOSD(true); sc->MakeFileName(CZapit::getInstance()->GetCurrentChannelID()); sc->Start(); + delete sc; } /* ================================== MESSAGES ================================================ */