stop timers and clear list to save also here
svn path=/trunk/KDE/kdelibs/; revision=895381
This commit is contained in:
parent
232986330b
commit
4bca5e12ec
@ -371,10 +371,14 @@ void FrameSvg::clearCache()
|
|||||||
{
|
{
|
||||||
FrameData *frame = d->frames[d->prefix];
|
FrameData *frame = d->frames[d->prefix];
|
||||||
|
|
||||||
|
d->saveTimer->stop();
|
||||||
|
d->framesToSave.clear();
|
||||||
|
|
||||||
// delete all the frames that aren't this one
|
// delete all the frames that aren't this one
|
||||||
QMutableHashIterator<QString, FrameData*> it(d->frames);
|
QMutableHashIterator<QString, FrameData*> it(d->frames);
|
||||||
while (it.hasNext()) {
|
while (it.hasNext()) {
|
||||||
FrameData *p = it.next().value();
|
FrameData *p = it.next().value();
|
||||||
|
|
||||||
if (frame != p) {
|
if (frame != p) {
|
||||||
delete p;
|
delete p;
|
||||||
it.remove();
|
it.remove();
|
||||||
|
Loading…
Reference in New Issue
Block a user