1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-12-04 14:46:46 -05:00

Free jabber_conn.log

This commit is contained in:
James Booth 2014-06-15 21:19:53 +01:00
parent bc03e0dc02
commit c9274a38b2

View File

@ -209,6 +209,7 @@ _jabber_shutdown(void)
_connection_free_saved_details(); _connection_free_saved_details();
_connection_free_session_data(); _connection_free_session_data();
xmpp_shutdown(); xmpp_shutdown();
free(jabber_conn.log);
} }
static void static void
@ -358,6 +359,9 @@ _jabber_connect(const char * const fulljid, const char * const passwd,
jid_destroy(jid); jid_destroy(jid);
log_info("Connecting as %s", fulljid); log_info("Connecting as %s", fulljid);
if (jabber_conn.log != NULL) {
free(jabber_conn.log);
}
jabber_conn.log = _xmpp_get_file_logger(); jabber_conn.log = _xmpp_get_file_logger();
if (jabber_conn.conn != NULL) { if (jabber_conn.conn != NULL) {