From e3c6ade78e5aee35a8f50430dd5a29bc96dae9d4 Mon Sep 17 00:00:00 2001 From: TripleWhy Date: Wed, 19 Dec 2018 13:52:24 +0000 Subject: [PATCH] Use delete[] to avoid undefined behavior --- src/native/QmlNet/QmlNet/qml/QGuiApplication.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/native/QmlNet/QmlNet/qml/QGuiApplication.cpp b/src/native/QmlNet/QmlNet/qml/QGuiApplication.cpp index 7bd65fbe..0773cc98 100644 --- a/src/native/QmlNet/QmlNet/qml/QGuiApplication.cpp +++ b/src/native/QmlNet/QmlNet/qml/QGuiApplication.cpp @@ -46,7 +46,7 @@ Q_DECL_EXPORT QGuiApplicationContainer* qguiapplication_create(NetVariantListCon Q_DECL_EXPORT void qguiapplication_destroy(QGuiApplicationContainer* container) { for (auto i : container->argsPointer) { - delete i; + delete[] i; } container->callback.clear(); if(container->ownsGuiApp) {