From 85dbfbaedecb46ebd0aa89ffeb674de497555ca9 Mon Sep 17 00:00:00 2001 From: "dreamer.dead" Date: Fri, 24 Jul 2020 07:20:31 +0000 Subject: Use unique_ptr to prevent memory leaks in VideoDevice class --- kms++util/inc/kms++util/videodevice.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'kms++util/inc') diff --git a/kms++util/inc/kms++util/videodevice.h b/kms++util/inc/kms++util/videodevice.h index e089bcd..0aaa103 100644 --- a/kms++util/inc/kms++util/videodevice.h +++ b/kms++util/inc/kms++util/videodevice.h @@ -1,6 +1,7 @@ #pragma once #include +#include #include class VideoStreamer; @@ -50,8 +51,8 @@ private: std::vector m_capture_fbs; std::vector m_output_fbs; - VideoStreamer* m_capture_streamer; - VideoStreamer* m_output_streamer; + std::unique_ptr m_capture_streamer; + std::unique_ptr m_output_streamer; }; class VideoStreamer -- cgit v1.2.3