You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
xmpp_stanza_new() returns a stanza with reference count = 1. Every xmpp_stanza_add_child() acquires additional reference to the child stanza. Therefore, you need to release a reference to the child after the xmpp_stanza_add_child(), otherwise, xmpp_stanza_release(message) will free only the message stanza, but body and text will remain allocated.
To reduce such a kind of errors, you can use stanza helpers like xmpp_message_new() and xmpp_message_set_body().
The text was updated successfully, but these errors were encountered:
xmpp_stanza_new()
returns a stanza with reference count = 1. Everyxmpp_stanza_add_child()
acquires additional reference to the child stanza. Therefore, you need to release a reference to the child after thexmpp_stanza_add_child()
, otherwise,xmpp_stanza_release(message)
will free only themessage
stanza, butbody
andtext
will remain allocated.To reduce such a kind of errors, you can use stanza helpers like
xmpp_message_new()
andxmpp_message_set_body()
.The text was updated successfully, but these errors were encountered: