mirror of
https://invent.kde.org/system/dolphin
synced 2024-11-05 18:47:12 +00:00
Fix memory leak with Dropbox version control plugin.
In the current version we only call endRetrieval when beginRetrieval was successfully in UpdateItemStatesThread::run(). This causes some problems with version control plugins (like Dropbox plugin), which have to do cleanups in endRetrieval. Now we always call endRetrieval after beginRetrieval when updating the version states. FIXED-IN: 4.13.1 REVIEW: 117753
This commit is contained in:
parent
4da1c81d63
commit
c9dab5ba8a
1 changed files with 2 additions and 2 deletions
|
@ -64,10 +64,10 @@ void UpdateItemStatesThread::run()
|
|||
items[i].version = static_cast<KVersionControlPlugin2::ItemVersion>(state);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
m_plugin->endRetrieval();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
QMap<QString, QVector<VersionControlObserver::ItemState> > UpdateItemStatesThread::itemStates() const
|
||||
|
|
Loading…
Reference in a new issue