mirror of
https://github.com/shavitush/bhoptimer.git
synced 2025-12-07 10:28:26 +00:00
Fixed memory leak with Shavit_SetReplayData.
This commit is contained in:
parent
66a2820808
commit
99335a54f2
@ -374,6 +374,7 @@ public int Native_SetReplayData(Handle handler, int numParams)
|
|||||||
int client = GetNativeCell(1);
|
int client = GetNativeCell(1);
|
||||||
|
|
||||||
ArrayList frames = view_as<ArrayList>(CloneHandle(GetNativeCell(2), handler));
|
ArrayList frames = view_as<ArrayList>(CloneHandle(GetNativeCell(2), handler));
|
||||||
|
delete gA_PlayerFrames[client];
|
||||||
gA_PlayerFrames[client] = frames.Clone();
|
gA_PlayerFrames[client] = frames.Clone();
|
||||||
delete frames;
|
delete frames;
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user