Try to Cleanup Memory for Fix Memory Leaks ...
This commit is contained in:
@@ -44,7 +44,7 @@ class XCX121SMCBaseStrategy : public XCBaseAlert
|
||||
|
||||
//
|
||||
// Constructor(s) ...
|
||||
void XCX121SMCBaseStrategy(
|
||||
XCX121SMCBaseStrategy(
|
||||
//
|
||||
// Base ...
|
||||
string _symbol, // Trading Symbol
|
||||
@@ -61,7 +61,7 @@ class XCX121SMCBaseStrategy : public XCBaseAlert
|
||||
|
||||
//
|
||||
// Deconstructor ...
|
||||
void ~XCX121SMCBaseStrategy()
|
||||
~XCX121SMCBaseStrategy()
|
||||
{
|
||||
DeInit();
|
||||
}
|
||||
@@ -500,6 +500,9 @@ class XCX121SMCBaseStrategy : public XCBaseAlert
|
||||
// Waits Until Next Candle if Current Tick has Guard ...
|
||||
mGuardBarTracker.Waits();
|
||||
|
||||
//
|
||||
ArrayFree(positions);
|
||||
|
||||
//
|
||||
return result;
|
||||
}
|
||||
@@ -863,6 +866,9 @@ class XCX121SMCBaseStrategy : public XCBaseAlert
|
||||
{
|
||||
AddObjectIfNotExists(objects[i]);
|
||||
}
|
||||
|
||||
//
|
||||
ArrayFree(objects);
|
||||
}
|
||||
|
||||
//
|
||||
@@ -959,6 +965,10 @@ class XCX121SMCBaseStrategy : public XCBaseAlert
|
||||
//
|
||||
delete mPOIDrawer;
|
||||
|
||||
//
|
||||
ArrayFree(mTicks);
|
||||
ArrayFree(mSignalEventHandlers);
|
||||
|
||||
//
|
||||
Destroy();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user