Skip to content

Commit 4fc066f

Browse files
authored
Added missing refcount decrease for subscriber (#3493)
1 parent 4419baf commit 4fc066f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/plugins/janus_videoroom.c

+1
Original file line numberDiff line numberDiff line change
@@ -9159,6 +9159,7 @@ void janus_videoroom_slow_link(janus_plugin_session *handle, int mindex, gboolea
91599159
json_object_set_new(event, "videoroom", json_string("slow_link"));
91609160
gateway->push_event(session->handle, &janus_videoroom_plugin, NULL, event, NULL);
91619161
json_decref(event);
9162+
janus_refcount_decrease(&subscriber->ref);
91629163
} else {
91639164
JANUS_LOG(LOG_WARN, "Got a slow downlink on a VideoRoom viewer? Weird, because it doesn't send media...\n");
91649165
}

0 commit comments

Comments
 (0)