(svn r7518) -Codechange: more NULL pointer resets after free.

This commit is contained in:
Darkvater
2006-12-20 21:17:33 +00:00
parent 1812bcfc8c
commit 28042b65ac
3 changed files with 14 additions and 11 deletions

View File

@@ -59,9 +59,10 @@ void NetworkGameListRemoveItem(NetworkGameList *remove)
}
/* Remove GRFConfig information */
ClearGRFConfigList(remove->info.grfconfig);
ClearGRFConfigList(&remove->info.grfconfig);
free(remove);
remove = NULL;
DEBUG(net, 4) ("[NET][GameList] Removed server from list");
UpdateNetworkGameWindow(false);
return;