mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-25 07:29:33 -05:00
Fixed memory leak in online toaster. The avatar data was not deleted, when the online toaster is deaktivated.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3897 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
38203704f0
commit
a79d2a8e53
@ -429,8 +429,6 @@ void NotifyQt::UpdateGUI()
|
||||
QPixmap pix ;
|
||||
pix.loadFromData(data,size,"PNG") ;
|
||||
onlineToaster->setPixmap(pix);
|
||||
delete[] data ;
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -449,6 +447,10 @@ void NotifyQt::UpdateGUI()
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
if (data) {
|
||||
delete[] data;
|
||||
}
|
||||
}
|
||||
|
||||
if (rsNotify->NotifySysMessage(sysid, type, title, msg))
|
||||
|
Loading…
Reference in New Issue
Block a user