Remove connection_free_conn(), connection_free_ctx()

This commit is contained in:
James Booth
2016-05-10 23:34:25 +01:00
parent a67d199581
commit a7fa27df01
3 changed files with 16 additions and 26 deletions

View File

@@ -194,6 +194,16 @@ connection_disconnect(void)
while (conn.conn_status == JABBER_DISCONNECTING) {
session_process_events(10);
}
if (conn.xmpp_conn) {
xmpp_conn_release(conn.xmpp_conn);
conn.xmpp_conn = NULL;
}
if (conn.xmpp_ctx) {
xmpp_ctx_free(conn.xmpp_ctx);
conn.xmpp_ctx = NULL;
}
}
#ifdef HAVE_LIBMESODE
@@ -372,24 +382,6 @@ connection_get_presence_msg(void)
return conn.presence_message;
}
void
connection_free_conn(void)
{
if (conn.xmpp_conn) {
xmpp_conn_release(conn.xmpp_conn);
conn.xmpp_conn = NULL;
}
}
void
connection_free_ctx(void)
{
if (conn.xmpp_ctx) {
xmpp_ctx_free(conn.xmpp_ctx);
conn.xmpp_ctx = NULL;
}
}
void
connection_free_presence_msg(void)
{