diff options
Diffstat (limited to 'Source/Graphics/animationeffectsystem.cpp')
-rw-r--r-- | Source/Graphics/animationeffectsystem.cpp | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/Source/Graphics/animationeffectsystem.cpp b/Source/Graphics/animationeffectsystem.cpp index 60b91d41..87ae66d3 100644 --- a/Source/Graphics/animationeffectsystem.cpp +++ b/Source/Graphics/animationeffectsystem.cpp @@ -27,26 +27,22 @@ #include <cstdio> -AnimationEffectSystem::AnimationEffectSystem() -{ +AnimationEffectSystem::AnimationEffectSystem() { mgr = new TheoraVideoManager(); } -AnimationEffectSystem::~AnimationEffectSystem() -{ - if( mgr ) +AnimationEffectSystem::~AnimationEffectSystem() { + if (mgr) delete mgr; mgr = NULL; } -void AnimationEffectSystem::Update(float timestep) -{ +void AnimationEffectSystem::Update(float timestep) { mgr->update(timestep); } -void AnimationEffectSystem::Dispose() -{ - if( mgr ) +void AnimationEffectSystem::Dispose() { + if (mgr) delete mgr; mgr = NULL; } |