stop timers and clear list to save also here

svn path=/trunk/KDE/kdelibs/; revision=895381
This commit is contained in:
Marco Martin 2008-12-10 15:45:34 +00:00
parent 232986330b
commit 4bca5e12ec

View File

@ -371,10 +371,14 @@ void FrameSvg::clearCache()
{
FrameData *frame = d->frames[d->prefix];
d->saveTimer->stop();
d->framesToSave.clear();
// delete all the frames that aren't this one
QMutableHashIterator<QString, FrameData*> it(d->frames);
while (it.hasNext()) {
FrameData *p = it.next().value();
if (frame != p) {
delete p;
it.remove();