diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-07-29 17:31:17 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-07-29 17:45:48 +0300 |
commit | a57d736348be038bcc1371b05dbc89459f87d045 (patch) | |
tree | 17b07752ede14f4e3ac2ef1a3d11284a0bbcaddf /src/gui/widgets/extendednamesmodel.cpp | |
parent | 9234bf25b145995d5395f98a1f5dd030783d25d6 (diff) | |
download | manaverse-a57d736348be038bcc1371b05dbc89459f87d045.tar.gz manaverse-a57d736348be038bcc1371b05dbc89459f87d045.tar.bz2 manaverse-a57d736348be038bcc1371b05dbc89459f87d045.tar.xz manaverse-a57d736348be038bcc1371b05dbc89459f87d045.zip |
Add icons to quests window.
Fix memory leak in extendednamesmodel.
Diffstat (limited to 'src/gui/widgets/extendednamesmodel.cpp')
-rw-r--r-- | src/gui/widgets/extendednamesmodel.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gui/widgets/extendednamesmodel.cpp b/src/gui/widgets/extendednamesmodel.cpp index 1cc6561dc..11c594321 100644 --- a/src/gui/widgets/extendednamesmodel.cpp +++ b/src/gui/widgets/extendednamesmodel.cpp @@ -65,6 +65,8 @@ void ExtendedNamesModel::clear() for (std::vector<Image*>::iterator it = mImages.begin(), it_end = mImages.end(); it != it_end; ++ it) { - (*it)->decRef(); + if (*it) + (*it)->decRef(); } + mImages.clear(); } |