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