diff --git a/platform/msvc2008/image/image.vcproj b/platform/msvc2008/image/image.vcproj
index 92101cbc4..9c0f438f8 100644
--- a/platform/msvc2008/image/image.vcproj
+++ b/platform/msvc2008/image/image.vcproj
@@ -208,6 +208,14 @@
+
+
+
+
+
+
+
+
diff --git a/platform/msvc2008/love.vcproj b/platform/msvc2008/love.vcproj
index 3a4a54bff..0ec8838df 100644
--- a/platform/msvc2008/love.vcproj
+++ b/platform/msvc2008/love.vcproj
@@ -1176,6 +1176,18 @@
RelativePath="..\..\src\modules\image\ImageData.h"
>
+
+
+
+
+
diff --git a/src/modules/graphics/opengl/ParticleSystem.cpp b/src/modules/graphics/opengl/ParticleSystem.cpp
index e8f1d26fe..a037c5266 100644
--- a/src/modules/graphics/opengl/ParticleSystem.cpp
+++ b/src/modules/graphics/opengl/ParticleSystem.cpp
@@ -62,10 +62,7 @@ namespace opengl
ParticleSystem::~ParticleSystem()
{
if(this->sprite != 0)
- {
this->sprite->release();
- this->sprite = 0;
- }
if(pStart != 0)
delete [] pStart;
@@ -138,13 +135,11 @@ namespace opengl
void ParticleSystem::setSprite(Image * image)
{
- if(this->sprite != 0)
- {
- this->sprite->release();
- this->sprite = 0;
- }
+ if(sprite != 0)
+ sprite->release();
- this->sprite = image;
+ sprite = image;
+ sprite->retain();
}
void ParticleSystem::setBufferSize(unsigned int size)