mirror of
https://github.com/qmlnet/qmlnet.git
synced 2026-05-21 06:45:32 -06:00
Use delete[] to avoid undefined behavior
This commit is contained in:
parent
89cbb9d43b
commit
e3c6ade78e
1 changed files with 1 additions and 1 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue