From 181ecd0c3bf27b47487f973fb83b988fd6ceaecf Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 2 Mar 2013 21:17:13 +0300 Subject: Another fixes after Coverity checks. --- src/gui/widgets/progressindicator.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/gui/widgets/progressindicator.cpp') diff --git a/src/gui/widgets/progressindicator.cpp b/src/gui/widgets/progressindicator.cpp index 401b45754..c0667f720 100644 --- a/src/gui/widgets/progressindicator.cpp +++ b/src/gui/widgets/progressindicator.cpp @@ -37,14 +37,12 @@ ProgressIndicator::ProgressIndicator() : ImageSet *const images = Theme::getImageSetFromTheme( "progress-indicator.png", 32, 32); - Animation *const anim = new Animation; if (images) { + Animation *const anim = new Animation; for (ImageSet::size_type i = 0, sz = images->size(); i < sz; ++i) anim->addFrame(images->get(i), 100, 0, 0, 100); - mIndicator = new SimpleAnimation(anim); - images->decRef(); } -- cgit v1.2.3-70-g09d2