Skip to content

Commit 8414ebf

Browse files
authored
le clobbered code
1 parent c77df2b commit 8414ebf

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

addons/sourcemod/scripting/shavit-replay-recorder.sp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -494,11 +494,13 @@ void FloppyAsynchronouslySavedMyReplayWhichWasNiceOfThem(bool saved, any value)
494494
int postframes = dp.ReadCell();
495495
char sName[MAX_NAME_LENGTH];
496496
dp.ReadString(sName, sizeof(sName));
497+
delete dp;
497498

498499
if (!saved)
499500
{
500501
LogError("Failed to save replay... Skipping OnReplaySaved");
501502
delete playerrecording; // importante!
503+
delete paths;
502504
return;
503505
}
504506

@@ -525,6 +527,7 @@ void FloppyAsynchronouslySavedMyReplayWhichWasNiceOfThem(bool saved, any value)
525527
Call_Finish();
526528

527529
delete playerrecording;
530+
delete paths;
528531
}
529532

530533
public void Shavit_OnFinish(int client, int style, float time, int jumps, int strafes, float sync, int track, float oldtime, float perfs, float avgvel, float maxvel, int timestamp)

0 commit comments

Comments
 (0)