fixed crash in stanza_create_form when text is NULL

xmpp_stanza_get_text may return NULL.
Also fixed memory leak: xmpp_stanza_get_text returns new allocated
string and it must be freed by xmpp_free().
This commit is contained in:
Dmitry Podgorny
2013-03-12 21:08:50 +02:00
parent c89de12b0f
commit ed2212a0ca
2 changed files with 8 additions and 1 deletions

View File

@@ -25,6 +25,8 @@
#include <strophe.h>
#include "resource.h"
xmpp_conn_t *connection_get_conn(void);
xmpp_ctx_t *connection_get_ctx(void);
int connection_error_handler(xmpp_conn_t * const conn,