Skip to content

Commit

Permalink
Add note about g_free transaction after calling push_event in plugin …
Browse files Browse the repository at this point in the history
…interface documentation
  • Loading branch information
vincentfretin committed May 11, 2024
1 parent 9be6a74 commit dbb3135
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/plugins/plugin.h
Original file line number Diff line number Diff line change
Expand Up @@ -357,6 +357,7 @@ struct janus_callbacks {
* @note The Janus core increases the references to both the message and jsep
* json_t objects. This means that you'll have to decrease your own
* reference yourself with a \c json_decref after calling push_event.
* You'll also have to free transaction with \c g_free.
* @param[in] handle The plugin/gateway session used for this peer
* @param[in] plugin The plugin instance that is sending the message/event
* @param[in] transaction The transaction identifier this message refers to
Expand Down

0 comments on commit dbb3135

Please sign in to comment.