From 440fa9453fa61ccca381be29ddc027b672edf835 Mon Sep 17 00:00:00 2001 From: Roland Winklmeier Date: Mon, 26 Dec 2016 03:55:02 +0100 Subject: [PATCH] Cleanup QDBusPendingCallWatcher after QDBusPendingCall finished X-Plane plugin triggers several async QDBus calls per second. None of them were ever cleaned up after they finished, causing a fast increase in process memory. refs #845 --- src/plugins/simulator/xplane/xbusserviceproxy.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/plugins/simulator/xplane/xbusserviceproxy.h b/src/plugins/simulator/xplane/xbusserviceproxy.h index 144768ed6..d3312de19 100644 --- a/src/plugins/simulator/xplane/xbusserviceproxy.h +++ b/src/plugins/simulator/xplane/xbusserviceproxy.h @@ -80,6 +80,7 @@ namespace BlackSimPlugin QDBusPendingReply reply = *watcher; if (reply.isError()) { emit asyncMethodError(reply.error()); } else { *obj = reply; } + watcher->deleteLater(); }; }