Try to Cleanup Memory for Fix Memory Leaks ...
This commit is contained in:
@@ -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 //
|
||||
)
|
||||
{
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user