From b75a8ed8ff2408e1fa0d3897b3d5520bfdc1bcf8 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Mon, 11 Sep 2023 23:21:48 +0200 Subject: [PATCH] - removed pointless heap allocation that never was freed. --- src/gamedata/d_dehacked.cpp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/gamedata/d_dehacked.cpp b/src/gamedata/d_dehacked.cpp index a2ab57df6..0b4f25576 100644 --- a/src/gamedata/d_dehacked.cpp +++ b/src/gamedata/d_dehacked.cpp @@ -1067,11 +1067,6 @@ static void SetDehParams(FState *state, int codepointer, VMDisassemblyDumper &di bool returnsState = codepointer == 6; - // Fakey fake script position thingamajig. Because NULL cannot be used instead. - // Even if the lump was parsed by an FScanner, there would hardly be a way to - // identify which line is troublesome. - FScriptPosition *pos = new FScriptPosition(FString("DEHACKED"), 0); - // Let's identify the codepointer we're dealing with. PFunction *sym; sym = dyn_cast(PClass::FindActor(NAME_Weapon)->FindSymbol(FName(MBFCodePointers[codepointer].name), true));