diff options
author | James Booth <boothj5@gmail.com> | 2016-05-02 00:40:16 +0100 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2016-05-02 00:40:16 +0100 |
commit | 31ab43ea2d4e9aba5b1629d17360ebc459f3f239 (patch) | |
tree | fc09e1ae76498445b41e24640c6009257330279f /src/xmpp/presence.c | |
parent | 2bacd43a16d62911b6d475287f7c6df87f459fb7 (diff) | |
download | profani-tty-31ab43ea2d4e9aba5b1629d17360ebc459f3f239.tar.gz |
Free stanza text and DiscoInfo features
Diffstat (limited to 'src/xmpp/presence.c')
-rw-r--r-- | src/xmpp/presence.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/xmpp/presence.c b/src/xmpp/presence.c index c147970c..0a9b3ce0 100644 --- a/src/xmpp/presence.c +++ b/src/xmpp/presence.c @@ -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); } |