From 9fc8c0bd66b4c1c9862be6fed81171fb8cc1a5da Mon Sep 17 00:00:00 2001 From: baldurk Date: Fri, 1 Mar 2019 11:34:04 +0000 Subject: [PATCH] Delete dangling GUIInvoke object --- qrenderdoc/Code/QRDUtils.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/qrenderdoc/Code/QRDUtils.cpp b/qrenderdoc/Code/QRDUtils.cpp index 8062c0f35..6b8e6e9bc 100644 --- a/qrenderdoc/Code/QRDUtils.cpp +++ b/qrenderdoc/Code/QRDUtils.cpp @@ -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 &f)