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:
parent
23af52985f
commit
ff19724991
@ -260,6 +260,8 @@ void AddonsLoading::startDownload()
|
|||||||
*/
|
*/
|
||||||
void AddonsLoading::doInstall()
|
void AddonsLoading::doInstall()
|
||||||
{
|
{
|
||||||
|
delete m_download_request;
|
||||||
|
m_download_request = NULL;
|
||||||
bool error=false;
|
bool error=false;
|
||||||
if(!m_addon.isInstalled() || m_addon.needsUpdate())
|
if(!m_addon.isInstalled() || m_addon.needsUpdate())
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user