summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErkin Bahceci <erkin@flux.(none)>2007-04-03 21:00:19 -0500
committerErkin Bahceci <erkin@flux.(none)>2007-04-03 21:00:19 -0500
commitd3c96484f543dbd99c5e5fee0e8c53630ad175a6 (patch)
treed135f0593257b4dcb7afe6947e7addefb5fbc60b
parent1f9b0564e96b361c2e9b26fcad044281593578e6 (diff)
downloadberyl-plugins-d3c96484f543dbd99c5e5fee0e8c53630ad175a6.tar.gz
beryl-plugins-d3c96484f543dbd99c5e5fee0e8c53630ad175a6.tar.bz2
Fixed memory leak when using Burn and Beam Up
-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;