summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/gui/rhi/qrhi_p_p.h2
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() {