diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-04-22 21:45:56 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-04-22 21:45:56 +0300 |
commit | 3a600d1d933534f294687d10d63d94a85cd9426a (patch) | |
tree | 74287afa3507f25d24aad75fb6810bdbd74322af /src/resources/resourcemanager.cpp | |
parent | 67d5177ef4f5d54ea8edc5403ed20f9ade56e8bf (diff) | |
download | plus-3a600d1d933534f294687d10d63d94a85cd9426a.tar.gz plus-3a600d1d933534f294687d10d63d94a85cd9426a.tar.bz2 plus-3a600d1d933534f294687d10d63d94a85cd9426a.tar.xz plus-3a600d1d933534f294687d10d63d94a85cd9426a.zip |
Fix possible crash in protected sprites deletion.
Diffstat (limited to 'src/resources/resourcemanager.cpp')
-rw-r--r-- | src/resources/resourcemanager.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/resources/resourcemanager.cpp b/src/resources/resourcemanager.cpp index 23f96368e..dd2e6c5ac 100644 --- a/src/resources/resourcemanager.cpp +++ b/src/resources/resourcemanager.cpp @@ -207,6 +207,8 @@ void ResourceManager::cleanProtected() { res->setProtected(false); res->decRef(); + iter = mResources.begin(); + continue; } ++ iter; |