diff options
author | Fabian Kosmale <fabian.kosmale@qt.io> | 2020-10-17 20:46:17 +0200 |
---|---|---|
committer | Fabian Kosmale <fabian.kosmale@qt.io> | 2020-10-19 18:03:18 +0200 |
commit | 52083e4da505bfe6abeb9e36ffd68ecefbbf6964 (patch) | |
tree | 22496be1bff486c3ec1530f33692c83f1104f51f /src | |
parent | 4f9ed76709223b595ea3d01fbf541c52275e0f08 (diff) |
QRhiBackendCommandList: avoid new[]/delete mismatch
Change-Id: Iac2645ebd1d42753817078f194ba61520f5f70c9
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/rhi/qrhi_p_p.h | 2 |
1 files changed, 1 insertions, 1 deletions
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() { |