mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-23 07:15:35 +08:00
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:
committed by
Mathew Sutcliffe
parent
045b2a9f59
commit
440fa9453f
@@ -80,6 +80,7 @@ namespace BlackSimPlugin
|
||||
QDBusPendingReply<T> reply = *watcher;
|
||||
if (reply.isError()) { emit asyncMethodError(reply.error()); }
|
||||
else { *obj = reply; }
|
||||
watcher->deleteLater();
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user