Issue #295: Fixed double json_decref()

This commit is contained in:
Maxim Devaev 2024-11-27 16:08:29 +02:00
parent 740e09c70d
commit 239db92a85

View File

@ -448,7 +448,7 @@ static struct janus_plugin_result *_plugin_handle_message(
json_t *const m_result = json_object(); \
json_object_set_new(m_result, "status", json_string(x_status)); \
if (x_payload != NULL) { \
json_object_set_new(m_result, x_status, x_payload); \
json_object_set(m_result, x_status, x_payload); \
} \
json_object_set_new(m_event, "result", m_result); \
_g_gw->push_event(session, create(), transaction, m_event, x_jsep); \