Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
richardschneider committed Apr 9, 2019
2 parents df33a28 + dfe907e commit 55bb6ea
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/IpfsEngine.cs
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public IpfsEngine(char[] passphrase)
/// </param>
public IpfsEngine(SecureString passphrase)
{
this.passphrase = passphrase;
this.passphrase = passphrase.Copy();
Init();
}

Expand Down Expand Up @@ -430,6 +430,7 @@ public async Task StopAsync()
/// </remarks>
public void Dispose()
{
passphrase?.Dispose();
StopAsync().Wait();
}

Expand Down

0 comments on commit 55bb6ea

Please sign in to comment.