equal
deleted
inserted
replaced
189 static void |
189 static void |
190 connection_free (LmConnection *connection) |
190 connection_free (LmConnection *connection) |
191 { |
191 { |
192 int i; |
192 int i; |
193 |
193 |
194 /* This needs to be run before starting to free internal states. |
194 /* This needs to be run before starting to free internal states. |
195 * It used to be run after the handlers where freed which lead to a crash |
195 * It used to be run after the handlers where freed which lead to a |
196 * when the connection was freed prior to running lm_connection_close. |
196 * crash when the connection was freed prior to running |
197 */ |
197 * lm_connection_close. |
198 if (connection->state >= LM_CONNECTION_STATE_OPENING) { |
198 */ |
199 connection_do_close (connection); |
199 if (connection->state >= LM_CONNECTION_STATE_OPENING) { |
|
200 connection_do_close (connection); |
200 } |
201 } |
201 |
202 |
202 g_free (connection->server); |
203 g_free (connection->server); |
203 g_free (connection->jid); |
204 g_free (connection->jid); |
204 g_free (connection->effective_jid); |
205 g_free (connection->effective_jid); |