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
+16 -4
View File
@@ -463,13 +463,25 @@ class XCX121XVWAPHelper : public XCBaseHelper
// Deconstructor ...
~XCX121XVWAPHelper()
{
//
mInputs.Clean();
//
ArrayFree(vwapFastBuffer);
ArrayFree(vwapMidBuffer);
ArrayFree(vwapSlowBuffer);
ArrayFree(vwapVolumeBuffer);
ArrayFree(vwapPriceBuffer);
ArrayFree(vwapFastStateBuffer);
ArrayFree(vwapMidStateBuffer);
ArrayFree(vwapSlowStateBuffer);
}
//
// Tools ...
bool Init(
string symbol, // Trading Symbol
ENUM_TIMEFRAMES period, // Trading Period
string symbol, // Trading Symbol
ENUM_TIMEFRAMES period, // Trading Period
X121XVWAPInputs &inputs // Inputs
)
{
@@ -1032,8 +1044,8 @@ class XCX121XVWAPHelper : public XCBaseHelper
//
bool GetConditions(
X121XVWAPConditions &conditions, //
int barIndex = 0, //
int loopback = 5 //
int barIndex = 0, //
int loopback = 5 //
)
{
//