diff options
author | Barnabás Pőcze <pobrn@protonmail.com> | 2024-03-10 14:30:38 +0000 |
---|---|---|
committer | Kieran Bingham <kieran.bingham@ideasonboard.com> | 2024-03-12 10:09:56 +0000 |
commit | ab5816a5406c3e269a0a5449f682cc3be6a50a1b (patch) | |
tree | 387dd8cde5cf7ee6782dbfdef23737d7fe09beba | |
parent | 443734023c1c953a3e4d0f3404b0d054f2449d99 (diff) |
libcamera: framebuffer_allocator: Use default destructor
The compiler generated destructor works fine, so use that.
Signed-off-by: Barnabás Pőcze <pobrn@protonmail.com>
Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Reviewed-by: Jacopo Mondi <jacopo.mondi@ideasonboard.com>
Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
-rw-r--r-- | src/libcamera/framebuffer_allocator.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/libcamera/framebuffer_allocator.cpp b/src/libcamera/framebuffer_allocator.cpp index 8cf45ab2..fc19a33a 100644 --- a/src/libcamera/framebuffer_allocator.cpp +++ b/src/libcamera/framebuffer_allocator.cpp @@ -63,10 +63,7 @@ FrameBufferAllocator::FrameBufferAllocator(std::shared_ptr<Camera> camera) { } -FrameBufferAllocator::~FrameBufferAllocator() -{ - buffers_.clear(); -} +FrameBufferAllocator::~FrameBufferAllocator() = default; /** * \brief Allocate buffers for a configured stream |