]> git.tdb.fi Git - libs/gl.git/blobdiff - source/animation.cpp
Plug some memory leaks
[libs/gl.git] / source / animation.cpp
index 37f583d5ec53b43324e67f7fcd1237a25bbefa80..b1ae1157fac6eeb8bbc64c5431845eef04c4f5a0 100644 (file)
@@ -18,9 +18,11 @@ Animation::Animation():
        looping(false)
 { }
 
-// Avoid synthesizing ~RefPtr in files including animation.h
 Animation::~Animation()
-{ }
+{
+       for(vector<Curve *>::iterator i=curves.begin(); i!=curves.end(); ++i)
+               delete *i;
+}
 
 void Animation::set_armature(const Armature &a)
 {