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
parent
4f9ed76709
commit
52083e4da5
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Reference in New Issue