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
This commit is contained in:
hikerstk 2011-10-16 12:43:23 +00:00
parent 23af52985f
commit ff19724991

View File

@ -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())
{