diff -r a446eafcddeb -r e704706008d4 project_files/frontlib/model/teamlist.h --- a/project_files/frontlib/model/teamlist.h Thu Jul 05 22:22:48 2012 +0200 +++ b/project_files/frontlib/model/teamlist.h Tue Jul 10 19:33:57 2012 +0200 @@ -32,12 +32,12 @@ void flib_teamlist_destroy(flib_teamlist *list); /** - * Insert a team into the list. Returns 0 on success. + * Insert a team into the list. The list takes ownership of the team. Returns 0 on success. */ int flib_teamlist_insert(flib_teamlist *list, flib_team *team, int pos); /** - * Delete the item with the name [name] from the list. + * Delete the team with the name [name] from the list and destroys it. * Returns 0 on success. */ int flib_teamlist_delete(flib_teamlist *list, const char *name); @@ -48,7 +48,7 @@ flib_team *flib_teamlist_find(const flib_teamlist *list, const char *name); /** - * Removes all items from the list and frees "teams". + * Removes all items from the list and destroys them. */ void flib_teamlist_clear(flib_teamlist *list);