summaryrefslogtreecommitdiff
path: root/src/imageparticle.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-06-08 15:39:25 +0300
committerAndrei Karas <akaras@inbox.ru>2011-06-08 15:39:25 +0300
commit3c7ec0569a4fce157e608021133bdc6cac679c10 (patch)
tree1bb8af393516cc315bcc1ec022766b184fb82d33 /src/imageparticle.cpp
parent943c206816027b21e9d658517a0640b92df4763d (diff)
downloadplus-3c7ec0569a4fce157e608021133bdc6cac679c10.tar.gz
plus-3c7ec0569a4fce157e608021133bdc6cac679c10.tar.bz2
plus-3c7ec0569a4fce157e608021133bdc6cac679c10.tar.xz
plus-3c7ec0569a4fce157e608021133bdc6cac679c10.zip
Zero variables after calling decRef().
Diffstat (limited to 'src/imageparticle.cpp')
-rw-r--r--src/imageparticle.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/imageparticle.cpp b/src/imageparticle.cpp
index 0f52135c9..ca220bcc4 100644
--- a/src/imageparticle.cpp
+++ b/src/imageparticle.cpp
@@ -60,6 +60,7 @@ ImageParticle::~ImageParticle()
ImageParticle::imageParticleCountByName[name] --;
mImage->decRef();
+ mImage = 0;
}
setMap(0);
}