]> cloud.milkyroute.net Git - dolphin.git/commitdiff
Fix memory leak with Dropbox version control plugin.
authorEmmanuel Pescosta <emmanuelpescosta099@gmail.com>
Thu, 24 Apr 2014 18:57:18 +0000 (20:57 +0200)
committerEmmanuel Pescosta <emmanuelpescosta099@gmail.com>
Fri, 25 Apr 2014 10:30:39 +0000 (12:30 +0200)
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

src/views/versioncontrol/updateitemstatesthread.cpp

index 6457f607dadd553c48b0944213a75ff62e80a461..62fcd09aa2d2893016ed93d7bc77e2718c0fc18c 100644 (file)
@@ -64,9 +64,9 @@ void UpdateItemStatesThread::run()
                     items[i].version = static_cast<KVersionControlPlugin2::ItemVersion>(state);
                 }
             }
-
-            m_plugin->endRetrieval();
         }
+
+        m_plugin->endRetrieval();
     }
 }