diff options
author | James Booth <boothj5@gmail.com> | 2012-10-16 23:38:27 +0100 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2012-10-16 23:38:27 +0100 |
commit | 68c6fe480342a8d3ffa76fe606e23ab31ab2bbc6 (patch) | |
tree | 076a32dfc8366d2cbe056f5a95f7ee021c244613 /src | |
parent | 2f66feef8a17f3508c09049c3d78e7f4746a85ef (diff) | |
download | profani-tty-68c6fe480342a8d3ffa76fe606e23ab31ab2bbc6.tar.gz |
Moved jabber_free_resources call
Diffstat (limited to 'src')
-rw-r--r-- | src/jabber.c | 11 | ||||
-rw-r--r-- | src/jabber.h | 1 | ||||
-rw-r--r-- | src/profanity.c | 3 |
3 files changed, 1 insertions, 14 deletions
diff --git a/src/jabber.c b/src/jabber.c index 6b16e16d..a326ce56 100644 --- a/src/jabber.c +++ b/src/jabber.c @@ -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) diff --git a/src/jabber.h b/src/jabber.h index 84483c79..c10c9ca6 100644 --- a/src/jabber.h +++ b/src/jabber.h @@ -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); diff --git a/src/profanity.c b/src/profanity.c index 2c652b3b..0b909935 100644 --- a/src/profanity.c +++ b/src/profanity.c @@ -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(); } |