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