summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordreamer.dead <dreamer.dead@gmail.com>2019-11-06 15:04:54 +0300
committerdreamer.dead <dreamer.dead@gmail.com>2019-11-06 16:27:39 +0300
commit2d6b5b2a4554f64513539d8d60891792e9760487 (patch)
tree78703102c9d03c9d5dc6e1f3cb21c0164d8c11e3
parentd29da28c7f2a0212d834136fe64fb8ca96a0a235 (diff)
Use [] operator delete to free CPUFramebuffer buffers
-rw-r--r--kms++util/src/cpuframebuffer.cpp2
1 files changed, 1 insertions, 1 deletions
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;
}
}