summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/particlesystem.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/particlesystem.cpp b/src/particlesystem.cpp
index 274b319..2539821 100644
--- a/src/particlesystem.cpp
+++ b/src/particlesystem.cpp
@@ -303,16 +303,28 @@ ParticleSystem::finiParticles ()
glDeleteTextures (1, &tex);
if (vertices_cache)
+ {
free (vertices_cache);
+ vertices_cache = NULL;
+ }
if (colors_cache)
+ {
free (colors_cache);
+ colors_cache = NULL;
+ }
if (coords_cache)
+ {
free (coords_cache);
+ coords_cache = NULL;
+ }
if (dcolors_cache)
+ {
free (dcolors_cache);
+ dcolors_cache = NULL;
+ }
}
ParticleSystemScreen::ParticleSystemScreen (CompScreen *) :