--- a/project_files/frontlib/net/netconn_send.c Thu Jul 05 22:22:48 2012 +0200
+++ b/project_files/frontlib/net/netconn_send.c Tue Jul 10 19:33:57 2012 +0200
@@ -150,10 +150,12 @@
teamcopy->ownerName = flib_strdupnull(conn->playerName);
if(teamcopy->ownerName) {
flib_teamlist_delete(&conn->pendingTeamlist, team->name);
- flib_teamlist_insert(&conn->pendingTeamlist, teamcopy, 0);
+ if(!flib_teamlist_insert(&conn->pendingTeamlist, teamcopy, 0)) {
+ teamcopy = NULL;
+ }
}
}
- flib_team_release(teamcopy);
+ flib_team_destroy(teamcopy);
}
int flib_netconn_send_addTeam(flib_netconn *conn, const flib_team *team) {
@@ -397,7 +399,7 @@
return -1;
}
-int flib_netconn_send_scheme(flib_netconn *conn, const flib_cfg *scheme) {
+int flib_netconn_send_scheme(flib_netconn *conn, const flib_scheme *scheme) {
int result = -1;
if(!log_badargs_if3(conn==NULL, scheme==NULL, flib_strempty(scheme->name))) {
flib_vector *vec = flib_vector_create();