From 14acc55aea0af224ba413f519eba5a93ee566f57 Mon Sep 17 00:00:00 2001 From: jenz Date: Thu, 13 Jun 2024 17:38:39 +0200 Subject: [PATCH] solved json object handle issue --- RaceTimer/scripting/toplvl.sp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }