Delete dangling GUIInvoke object

This commit is contained in:
baldurk
2019-03-01 11:34:04 +00:00
parent e23974e2bf
commit 9fc8c0bd66
+1
View File
@@ -940,6 +940,7 @@ void GUIInvoke::init()
{
GUIInvoke *invoke = new GUIInvoke(NULL, {});
methodIndex = invoke->metaObject()->indexOfMethod(QMetaObject::normalizedSignature("doInvoke()"));
invoke->deleteLater();
}
void GUIInvoke::call(QObject *obj, const std::function<void()> &f)