1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-06-23 21:45:30 +00:00

Moved jabber_free_resources call

This commit is contained in:
James Booth 2012-10-16 23:38:27 +01:00
parent 2f66feef8a
commit 68c6fe4803
3 changed files with 1 additions and 14 deletions

View File

@ -70,17 +70,6 @@ jabber_init(const int disable_tls)
jabber_conn.tls_disabled = disable_tls;
}
void
jabber_shutdown(void)
{
// free memory for connection and context
xmpp_conn_release(jabber_conn.conn);
xmpp_ctx_free(jabber_conn.ctx);
// shutdown libstrophe
xmpp_shutdown();
}
jabber_conn_status_t
jabber_connect(const char * const user,
const char * const passwd)

View File

@ -41,7 +41,6 @@ typedef enum {
} jabber_presence_t;
void jabber_init(const int disable_tls);
void jabber_shutdown(void);
jabber_conn_status_t jabber_connect(const char * const user,
const char * const passwd);
gboolean jabber_disconnect(void);

View File

@ -281,9 +281,8 @@ _shutdown_init(void)
while (jabber_get_connection_status() == JABBER_DISCONNECTING) {
jabber_process_events();
}
jabber_shutdown();
jabber_free_resources();
}
jabber_free_resources();
_shutdown();
}