Try to Cleanup Memory for Fix Memory Leaks ...

This commit is contained in:
2025-01-17 02:19:22 +03:30
parent 46c38f8f54
commit 3c2de65f40
23 changed files with 842 additions and 382 deletions
+13 -3
View File
@@ -475,6 +475,16 @@ class XCX121XATRHelper : public XCBaseHelper
// Deconstructor ...
~XCX121XATRHelper()
{
//
ArrayFree(rsiBuffer);
ArrayFree(atrUpperBuffer);
ArrayFree(atrLowerBuffer);
ArrayFree(atrBuffer);
ArrayFree(atrUpperRawBuffer);
ArrayFree(atrLowerRawBuffer);
//
mInputs.Clean();
}
//
@@ -482,7 +492,7 @@ class XCX121XATRHelper : public XCBaseHelper
bool Init(
string symbol, // Trading Symbol
ENUM_TIMEFRAMES period, // Trading Period
X121XATRInputs &inputs // Inputs
X121XATRInputs &inputs // Inputs
)
{
//
@@ -880,8 +890,8 @@ class XCX121XATRHelper : public XCBaseHelper
//
bool GetConditions(
X121XATRConditions &conditions, //
int barIndex = 0, //
int loopback = 5 //
int barIndex = 0, //
int loopback = 5 //
)
{
//