From 2d6b5b2a4554f64513539d8d60891792e9760487 Mon Sep 17 00:00:00 2001 From: "dreamer.dead" Date: Wed, 6 Nov 2019 15:04:54 +0300 Subject: Use [] operator delete to free CPUFramebuffer buffers --- kms++util/src/cpuframebuffer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kms++util/src/cpuframebuffer.cpp b/kms++util/src/cpuframebuffer.cpp index d356596..33f8f97 100644 --- a/kms++util/src/cpuframebuffer.cpp +++ b/kms++util/src/cpuframebuffer.cpp @@ -29,7 +29,7 @@ CPUFramebuffer::~CPUFramebuffer() for (unsigned i = 0; i < m_num_planes; ++i) { FramebufferPlane& plane = m_planes[i]; - delete plane.map; + delete [] plane.map; } } -- cgit v1.2.3