From d3763b0053284154bcceadbd2d1d8fe171adc4cf Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Fri, 17 Dec 2021 13:43:01 +0100 Subject: video/ps3eye: fix leak --- video-ps3eye/module.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'video-ps3eye') diff --git a/video-ps3eye/module.cpp b/video-ps3eye/module.cpp index fbc9a8da..a234a3aa 100644 --- a/video-ps3eye/module.cpp +++ b/video-ps3eye/module.cpp @@ -257,6 +257,8 @@ OTR_REGISTER_CAMERA(ps3eye_camera_) dialog::dialog(QWidget* parent) : QWidget(parent) { ui.setupUi(this); + setAttribute(Qt::WA_DeleteOnClose); + t.setInterval(500); t.setSingleShot(true); tie_setting(s.exposure, ui.exposure_slider); tie_setting(s.gain, ui.gain_slider); -- cgit v1.2.3