diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-01-07 14:51:29 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-01-07 14:51:29 +0300 |
commit | 5ea427865209cc2b976fc84aadcd257b35e6bd79 (patch) | |
tree | b7ed0944a9185b17252d986a88ae5e241b566337 /src | |
parent | 09428bc03221484d27fe102ed436c08f6a09d866 (diff) | |
download | mv-5ea427865209cc2b976fc84aadcd257b35e6bd79.tar.gz mv-5ea427865209cc2b976fc84aadcd257b35e6bd79.tar.bz2 mv-5ea427865209cc2b976fc84aadcd257b35e6bd79.tar.xz mv-5ea427865209cc2b976fc84aadcd257b35e6bd79.zip |
fix leak in atatardb with duplicate avatars.
Diffstat (limited to 'src')
-rw-r--r-- | src/resources/db/avatardb.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/resources/db/avatardb.cpp b/src/resources/db/avatardb.cpp index 1df47e3ef..b522c6b76 100644 --- a/src/resources/db/avatardb.cpp +++ b/src/resources/db/avatardb.cpp @@ -79,7 +79,7 @@ void AvatarDB::loadXmlFile(const std::string &fileName) BeingInfo *currentInfo = nullptr; if (mAvatarInfos.find(id) != mAvatarInfos.end()) currentInfo = mAvatarInfos[id]; - else + if (!currentInfo) currentInfo = new BeingInfo; currentInfo->setName(XML::langProperty( |