X-Git-Url: https://deadsoftware.ru/gitweb?a=blobdiff_plain;f=src%2Fgame%2Fg_map.pas;h=71f50d1c66c93f4af8352dfe44e400b2ec506005;hb=a3ef23c31742fba53271c9a5a4dfe6ea26ea5d68;hp=54d22a183ba4a224133de8c67d6dbf2b8120bdca;hpb=d0b4e26c3755ae0cb023bcadda3e72f1c021920a;p=d2df-sdl.git diff --git a/src/game/g_map.pas b/src/game/g_map.pas index 54d22a1..71f50d1 100644 --- a/src/game/g_map.pas +++ b/src/game/g_map.pas @@ -243,7 +243,7 @@ implementation {$ENDIF} e_input, e_log, e_res, g_items, g_console, g_weapons, g_game, g_sound, e_sound, CONFIG, - g_options, g_triggers, g_player, + g_options, g_triggers, g_player, g_window, Math, g_monsters, g_saveload, g_language, g_netmsg, sfs, xstreams, hashtable, wadreader, g_res_downloader @@ -1004,8 +1004,8 @@ end; Textures[High(Textures)].TextureName := RecName; Result := High(Textures); TextNameHash.put(HName, result); + FreeMem(ResData); end; - FreeMem(ResData); end; WAD.Free; end