Skip to content

Commit

Permalink
Update RespArray.mqh (#27)
Browse files Browse the repository at this point in the history
don't delete Nil pointer on RespArray destruction
  • Loading branch information
marfer authored and dingmaotu committed Mar 20, 2018
1 parent d5f1361 commit e8c5b4a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Format/RespArray.mqh
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ protected:
int size=ArraySize(m_array);
for(int i=0; i<size; i++)
{
SafeDelete(m_array[i]);
if(m_array[i]!=Nil) SafeDelete(m_array[i]);
}
}
public:
Expand Down

0 comments on commit e8c5b4a

Please sign in to comment.