diff options
Diffstat (limited to 'src/resources/ambientlayer.cpp')
-rw-r--r-- | src/resources/ambientlayer.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/resources/ambientlayer.cpp b/src/resources/ambientlayer.cpp index 92d9eb43e..a0f3803eb 100644 --- a/src/resources/ambientlayer.cpp +++ b/src/resources/ambientlayer.cpp @@ -74,7 +74,10 @@ AmbientLayer::AmbientLayer(Image *img, float parallax, AmbientLayer::~AmbientLayer() { if (mImage) + { mImage->decRef(); + mImage = 0; + } } void AmbientLayer::update(int timePassed, float dx, float dy) |