From 9fd3bdca9de2d37b63e1646b22d32b0b182f01ee Mon Sep 17 00:00:00 2001 From: Loek Le Blansch Date: Wed, 16 Oct 2024 18:24:16 +0200 Subject: use unique_ptr instead of manual memory management in behaviorscript --- src/crepe/api/BehaviorScript.cpp | 7 ------- 1 file changed, 7 deletions(-) (limited to 'src/crepe/api/BehaviorScript.cpp') diff --git a/src/crepe/api/BehaviorScript.cpp b/src/crepe/api/BehaviorScript.cpp index e8a85dd..7a93f10 100644 --- a/src/crepe/api/BehaviorScript.cpp +++ b/src/crepe/api/BehaviorScript.cpp @@ -9,10 +9,3 @@ BehaviorScript::BehaviorScript() { dbg_trace(); } -BehaviorScript::~BehaviorScript() { - if (this->script != nullptr) { - delete this->script; - this->script = nullptr; - } -} - -- cgit v1.2.3