mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-20 12:35:43 +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;
|
QDBusPendingReply<T> reply = *watcher;
|
||||||
if (reply.isError()) { emit asyncMethodError(reply.error()); }
|
if (reply.isError()) { emit asyncMethodError(reply.error()); }
|
||||||
else { *obj = reply; }
|
else { *obj = reply; }
|
||||||
|
watcher->deleteLater();
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user