[PATCH v1 2/3] libcamera: framebuffer_allocator: use default destructor

Barnabás Pőcze pobrn at protonmail.com
Sun Mar 10 02:29:59 CET 2024


The compiler generated destructor works fine, so use that.
---
 src/libcamera/framebuffer_allocator.cpp | 5 +----
 1 file changed, 1 insertion(+), 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
-- 
2.44.0




More information about the libcamera-devel mailing list