summaryrefslogtreecommitdiff
path: root/network_gamelist.c
diff options
context:
space:
mode:
Diffstat (limited to 'network_gamelist.c')
-rw-r--r--network_gamelist.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/network_gamelist.c b/network_gamelist.c
index 57f24b281..f52272307 100644
--- a/network_gamelist.c
+++ b/network_gamelist.c
@@ -5,6 +5,7 @@
#include "stdafx.h"
#include "debug.h"
#include "network_data.h"
+#include "newgrf_config.h"
// This file handles the GameList
// Also, it handles the request to a server for data about the server
@@ -57,6 +58,9 @@ void NetworkGameListRemoveItem(NetworkGameList *remove)
prev_item->next = remove->next;
}
+ /* Remove GRFConfig information */
+ ClearGRFConfigList(remove->info.grfconfig);
+
free(remove);
DEBUG(net, 4) ("[NET][GameList] Removed server from list");
UpdateNetworkGameWindow(false);