From 4c384d1e9f66f5a77f22c823ecee28f8817e2f28 Mon Sep 17 00:00:00 2001 From: Vlad Zahorodnii Date: Sun, 31 Mar 2024 18:19:14 +0300 Subject: [PATCH] plugins/screencast: Destroy renegotiate event If I'm not mistaken, the renegotiate event is leaked. Also, its handler function can be hypothetically called after thhe ScreenCastStream object is destroyed. --- src/plugins/screencast/screencaststream.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/plugins/screencast/screencaststream.cpp b/src/plugins/screencast/screencaststream.cpp index fb35825c80..90d38c727f 100644 --- a/src/plugins/screencast/screencaststream.cpp +++ b/src/plugins/screencast/screencaststream.cpp @@ -360,6 +360,10 @@ ScreenCastStream::ScreenCastStream(ScreenCastSource *source, std::shared_ptrpwMainLoop, m_pwRenegotiate); + } if (m_pwStream) { pw_stream_destroy(m_pwStream); }