diff options
| author | Emmanuel Pescosta <[email protected]> | 2014-04-24 20:57:18 +0200 |
|---|---|---|
| committer | Emmanuel Pescosta <[email protected]> | 2014-04-25 12:30:39 +0200 |
| commit | 272cbbd16b03e51b30b6b9d472aa56054a5ea036 (patch) | |
| tree | 26e95652f962672fd8dbdba89e027eeb87feb243 /src/views/versioncontrol | |
| parent | bf4b163a0eb5938a587cd12cc9a77e6322c1de66 (diff) | |
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
Diffstat (limited to 'src/views/versioncontrol')
| -rw-r--r-- | src/views/versioncontrol/updateitemstatesthread.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/views/versioncontrol/updateitemstatesthread.cpp b/src/views/versioncontrol/updateitemstatesthread.cpp index 6457f607d..62fcd09aa 100644 --- a/src/views/versioncontrol/updateitemstatesthread.cpp +++ b/src/views/versioncontrol/updateitemstatesthread.cpp @@ -64,9 +64,9 @@ void UpdateItemStatesThread::run() items[i].version = static_cast<KVersionControlPlugin2::ItemVersion>(state); } } - - m_plugin->endRetrieval(); } + + m_plugin->endRetrieval(); } } |
