equal
deleted
inserted
replaced
184 return ERROR_CODE(err); |
184 return ERROR_CODE(err); |
185 } |
185 } |
186 |
186 |
187 void irc_conn_destroy (struct irc_conn *conn) |
187 void irc_conn_destroy (struct irc_conn *conn) |
188 { |
188 { |
189 // release the line_proto |
189 // the line_proto |
190 if (conn->lp) |
190 if (conn->lp) |
191 line_proto_release(conn->lp); |
191 line_proto_release(conn->lp); |
192 |
192 |
193 // free the command handlers |
193 // the command handlers |
194 irc_cmd_free(&conn->handlers); |
194 irc_cmd_free(&conn->handlers); |
195 |
195 |
196 // free the irc_conn itself |
196 // additional data |
|
197 free(conn->nickname); |
|
198 |
|
199 // the irc_conn itself |
197 free(conn); |
200 free(conn); |
198 } |
201 } |
199 |
202 |
200 err_t irc_conn_add_cmd_handlers (struct irc_conn *conn, struct irc_cmd_handler *handlers, void *arg) |
203 err_t irc_conn_add_cmd_handlers (struct irc_conn *conn, struct irc_cmd_handler *handlers, void *arg) |
201 { |
204 { |