summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/animation.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/animation.c b/src/animation.c
index c51e345..af3aa92 100644
--- a/src/animation.c
+++ b/src/animation.c
@@ -8033,11 +8033,7 @@ static void postAnimationCleanup(CompWindow * w, Bool resetAnimation)
int i = 0;
for (i = 0; i < aw->numPs; i++)
- {
- free(aw->ps[i].particles);
- if (aw->ps[i].tex)
- glDeleteTextures(1, &aw->ps[i].tex);
- }
+ finiParticles(aw->ps + i);
free(aw->ps);
aw->ps = NULL;
aw->numPs = 0;