mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-28 03:56:21 +00:00
Free stanza text and DiscoInfo features
This commit is contained in:
@@ -93,6 +93,7 @@ _presence_handler(xmpp_conn_t *const conn, xmpp_stanza_t *const stanza, void *co
|
||||
size_t text_size;
|
||||
xmpp_stanza_to_text(stanza, &text, &text_size);
|
||||
gboolean cont = plugins_on_presence_stanza_receive(text);
|
||||
xmpp_free(connection_get_ctx(), text);
|
||||
if (!cont) {
|
||||
return 1;
|
||||
}
|
||||
@@ -845,4 +846,5 @@ _send_presence_stanza(xmpp_stanza_t *const stanza)
|
||||
} else {
|
||||
xmpp_send_raw_string(conn, "%s", text);
|
||||
}
|
||||
xmpp_free(connection_get_ctx(), text);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user