[vlc-commits] Qt: PixmapAnimator: fix wrong iterator bound
Francois Cartegnie
git at videolan.org
Sat Apr 13 13:16:13 CEST 2013
vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Sat Apr 13 13:10:32 2013 +0200| [b79f9b0b16c9cc59956baf968c119eac6f25c56f] | committer: Francois Cartegnie
Qt: PixmapAnimator: fix wrong iterator bound
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=b79f9b0b16c9cc59956baf968c119eac6f25c56f
---
modules/gui/qt4/util/customwidgets.hpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/gui/qt4/util/customwidgets.hpp b/modules/gui/qt4/util/customwidgets.hpp
index 5351617..e7ccf46 100644
--- a/modules/gui/qt4/util/customwidgets.hpp
+++ b/modules/gui/qt4/util/customwidgets.hpp
@@ -116,7 +116,7 @@ public:
PixmapAnimator( QWidget *parent, QList<QString> _frames );
void setFps( int _fps ) { fps = _fps; interval = 1000.0 / fps; };
virtual int duration() const { return interval * pixmaps.count(); };
- virtual ~PixmapAnimator() { while( pixmaps.count() ) pixmaps.erase( pixmaps.end() ); };
+ virtual ~PixmapAnimator() { qDeleteAll( pixmaps ); };
QPixmap *getPixmap() { return currentPixmap; }
protected:
virtual void updateCurrentTime ( int msecs );
More information about the vlc-commits
mailing list