From 3a638b7eb7e9db5e4d88ae5ddd2ccb9f6de23f35 Mon Sep 17 00:00:00 2001 From: Benoist <14257866+Kenzzer@users.noreply.github.com> Date: Sun, 3 Mar 2024 01:01:16 +0100 Subject: [PATCH] Fix memory leak in `Path.Destroy` (#50) --- extension/natives/nextbot/path.cpp | 2 +- product.version | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/extension/natives/nextbot/path.cpp b/extension/natives/nextbot/path.cpp index 0d3d3d6..a7dd29c 100644 --- a/extension/natives/nextbot/path.cpp +++ b/extension/natives/nextbot/path.cpp @@ -594,7 +594,7 @@ cell_t ComputeToTarget(IPluginContext* context, const cell_t* params) { cell_t Destroy(IPluginContext* context, const cell_t* params) { auto path = Get(context, params[1]); - if (path) { + if (!path) { return 0; } diff --git a/product.version b/product.version index 1cac385..720c738 100644 --- a/product.version +++ b/product.version @@ -1 +1 @@ -1.11.0 +1.11.1