From ff197249913a6721a08e2df9a1b3d00a6fae1d71 Mon Sep 17 00:00:00 2001 From: hikerstk Date: Sun, 16 Oct 2011 12:43:23 +0000 Subject: [PATCH] Fixed memory leak when addon is installed. git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9998 178a84e3-b1eb-0310-8ba1-8eac791a3b58 --- src/states_screens/dialogs/addons_loading.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/states_screens/dialogs/addons_loading.cpp b/src/states_screens/dialogs/addons_loading.cpp index 3ced2ce5c..c3e9f8a73 100644 --- a/src/states_screens/dialogs/addons_loading.cpp +++ b/src/states_screens/dialogs/addons_loading.cpp @@ -260,6 +260,8 @@ void AddonsLoading::startDownload() */ void AddonsLoading::doInstall() { + delete m_download_request; + m_download_request = NULL; bool error=false; if(!m_addon.isInstalled() || m_addon.needsUpdate()) {