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
This commit is contained in:
Roland Winklmeier
2016-12-26 03:55:02 +01:00
committed by Mathew Sutcliffe
parent 045b2a9f59
commit 440fa9453f

View File

@@ -80,6 +80,7 @@ namespace BlackSimPlugin
QDBusPendingReply<T> reply = *watcher;
if (reply.isError()) { emit asyncMethodError(reply.error()); }
else { *obj = reply; }
watcher->deleteLater();
};
}