From 4fc066fffe387fad88b8a0ee2fc081e6694eb389 Mon Sep 17 00:00:00 2001 From: Valery <40487664+m08pvv@users.noreply.github.com> Date: Wed, 18 Dec 2024 12:59:35 +0300 Subject: [PATCH] Added missing refcount decrease for subscriber (#3493) --- src/plugins/janus_videoroom.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/plugins/janus_videoroom.c b/src/plugins/janus_videoroom.c index d940ee2a34..d00b16293a 100644 --- a/src/plugins/janus_videoroom.c +++ b/src/plugins/janus_videoroom.c @@ -9159,6 +9159,7 @@ void janus_videoroom_slow_link(janus_plugin_session *handle, int mindex, gboolea json_object_set_new(event, "videoroom", json_string("slow_link")); gateway->push_event(session->handle, &janus_videoroom_plugin, NULL, event, NULL); json_decref(event); + janus_refcount_decrease(&subscriber->ref); } else { JANUS_LOG(LOG_WARN, "Got a slow downlink on a VideoRoom viewer? Weird, because it doesn't send media...\n"); }