[v1,2/3] libcamera: framebuffer_allocator: use default destructor
diff mbox series

Message ID 20240310012946.727641-3-pobrn@protonmail.com
State Superseded
Headers show
Series
  • couple FrameBufferAllocator changes
Related show

Commit Message

Barnabás Pőcze March 10, 2024, 1:29 a.m. UTC
The compiler generated destructor works fine, so use that.
---
 src/libcamera/framebuffer_allocator.cpp | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

Patch
diff mbox series

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