Codechange: remove manual allocation/free for SQ_instance

This commit is contained in:
Rubidium
2023-05-06 14:19:41 +02:00
committed by rubidium42
parent f9b5bc7ee6
commit 62fda0f505
4 changed files with 28 additions and 36 deletions

View File

@@ -31,11 +31,9 @@ class ScriptInfo : public SimpleCountedObject {
public:
ScriptInfo() :
engine(nullptr),
SQ_instance(nullptr),
version(0),
scanner(nullptr)
{}
~ScriptInfo();
/**
* Get the Author of the script.
@@ -139,7 +137,7 @@ public:
protected:
class Squirrel *engine; ///< Engine used to register for Squirrel.
HSQOBJECT *SQ_instance; ///< The Squirrel instance created for this info.
HSQOBJECT SQ_instance; ///< The Squirrel instance created for this info.
ScriptConfigItemList config_list; ///< List of settings from this Script.
private: