mirror of
https://invent.kde.org/system/dolphin
synced 2024-09-17 15:31:20 +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
bf4b163a0e
commit
272cbbd16b
|
@ -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