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
+15 -3
View File
@@ -421,6 +421,18 @@ class XCX121XDONHelper : public XCBaseHelper
// Deconstructor ...
~XCX121XDONHelper()
{
//
mInputs.Clean();
//
ArrayFree(donOpenUpperBuffer);
ArrayFree(donOpenLowerBuffer);
ArrayFree(donHighUpperBuffer);
ArrayFree(donHighLowerBuffer);
ArrayFree(donLowUpperBuffer);
ArrayFree(donLowLowerBuffer);
ArrayFree(donCloseUpperBuffer);
ArrayFree(donCloseLowerBuffer);
}
//
@@ -428,7 +440,7 @@ class XCX121XDONHelper : public XCBaseHelper
bool Init(
string symbol, // Trading Symbol
ENUM_TIMEFRAMES period, // Trading Period
X121XDONInputs &inputs // Inputs
X121XDONInputs &inputs // Inputs
)
{
//
@@ -950,8 +962,8 @@ class XCX121XDONHelper : public XCBaseHelper
//
bool GetConditions(
X121XDONConditions &conditions, //
int barIndex = 0, //
int loopback = 5 //
int barIndex = 0, //
int loopback = 5 //
)
{
//