Free the connection language.

This created a memory leak when freeing a connection.
This commit is contained in:
Dustin Sallings
2009-04-08 14:06:57 -07:00
parent 2b661bd1f4
commit 3156f5044f

View File

@@ -269,6 +269,7 @@ int xmpp_conn_release(xmpp_conn_t * const conn)
if (conn->jid) xmpp_free(ctx, conn->jid);
if (conn->pass) xmpp_free(ctx, conn->pass);
if (conn->stream_id) xmpp_free(ctx, conn->stream_id);
if (conn->lang) xmpp_free(ctx, conn->lang);
xmpp_free(ctx, conn);
released = 1;
}