From 3061d70387f48a4687688b8dc8fa6e34f4a80b85 Mon Sep 17 00:00:00 2001 From: rubidium Date: Wed, 15 Apr 2009 20:35:52 +0000 Subject: (svn r16064) -Fix: memory leak when querying a server multiple times. --- src/network/network_gamelist.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/network') diff --git a/src/network/network_gamelist.cpp b/src/network/network_gamelist.cpp index 4e96ad019..71f8be968 100644 --- a/src/network/network_gamelist.cpp +++ b/src/network/network_gamelist.cpp @@ -44,6 +44,7 @@ static void NetworkGameListHandleDelayedInsert() NetworkGameList *item = NetworkGameListAddItem(ins_item->address); if (item != NULL) { + ClearGRFConfigList(&item->info.grfconfig); if (StrEmpty(item->info.server_name)) { memset(&item->info, 0, sizeof(item->info)); strecpy(item->info.server_name, ins_item->info.server_name, lastof(item->info.server_name)); -- cgit v1.2.3-70-g09d2