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)