From 52083e4da505bfe6abeb9e36ffd68ecefbbf6964 Mon Sep 17 00:00:00 2001 From: Fabian Kosmale Date: Sat, 17 Oct 2020 20:46:17 +0200 Subject: QRhiBackendCommandList: avoid new[]/delete mismatch Change-Id: Iac2645ebd1d42753817078f194ba61520f5f70c9 Reviewed-by: Volker Hilsheimer Reviewed-by: Laszlo Agocs --- src/gui/rhi/qrhi_p_p.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/gui') diff --git a/src/gui/rhi/qrhi_p_p.h b/src/gui/rhi/qrhi_p_p.h index 8a85227bae..ad1e3c0fe0 100644 --- a/src/gui/rhi/qrhi_p_p.h +++ b/src/gui/rhi/qrhi_p_p.h @@ -660,7 +660,7 @@ class QRhiBackendCommandList { public: QRhiBackendCommandList() = default; - ~QRhiBackendCommandList() { delete v; } + ~QRhiBackendCommandList() { delete[] v; } inline void reset() { p = 0; } inline bool isEmpty() const { return p == 0; } inline T &get() { -- cgit v1.2.3