diff --git a/RaceTimer/scripting/toplvl.sp b/RaceTimer/scripting/toplvl.sp index abed93ed..448d072e 100644 --- a/RaceTimer/scripting/toplvl.sp +++ b/RaceTimer/scripting/toplvl.sp @@ -37,8 +37,8 @@ public int OnTransferResponse(char[] sData) Format(g_cTimeRecords[counter], sizeof(g_cTimeRecords[]), "%s LVL: %i", player_name, I_player_points/1000); counter++; - json_cleanup_and_delete(position_obj); } + //just cleaning the outmost object should be enough. json_cleanup_and_delete(obj); return 0; }