Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

issue #48 - IInitiator.Stop() must release resources #186

Merged
merged 8 commits into from
May 13, 2013
Merged
Prev Previous commit
Next Next commit
issue #48 - fix broke unit tests
  • Loading branch information
gbirchmeier committed May 10, 2013
commit 26f42b6faedb82fb2b4a8ce5463768b33e041dd7
4 changes: 2 additions & 2 deletions QuickFIXn/FileLog.cs
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,8 @@ public void OnEvent(string s)

public void Dispose()
{
messageLog_.Close();
eventLog_.Close();
if (messageLog_ != null) { messageLog_.Close(); }
if (eventLog_ != null) { eventLog_.Close(); }

messageLog_ = null;
eventLog_ = null;
Expand Down
3 changes: 3 additions & 0 deletions UnitTests/FileLogTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,10 @@ public void setup()
public void teardown()
{
if (log != null)
{
log.Dispose();
log = null;
}
}

[Test]
Expand Down