QRhiBackendCommandList: avoid new[]/delete mismatch

Change-Id: Iac2645ebd1d42753817078f194ba61520f5f70c9
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
bb10
Fabian Kosmale 2020-10-17 20:46:17 +02:00
parent 4f9ed76709
commit 52083e4da5
1 changed files with 1 additions and 1 deletions

View File

@ -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() {