Dispose process
MODIFY
WalletWasabi/Gma/QrCodeNet/Encoding/BitMatrixBase.cs
WalletWasabi/Gma/QrCodeNet/Encoding/BitMatrixBase.cs
@@ -26,14 +26,7 @@ namespace Gma.QrCodeNet.Encoding
if (internalArray is null)
return false;
- if (internalArray.GetLength(0) == internalArray.GetLength(1))
- {
- return true;
- }
- else
- {
- return false;
- }
+ return internalArray.GetLength(0) == internalArray.GetLength(1) ? true : false;
}
/// <summary>

MODIFY
WalletWasabi/Helpers/EnvironmentHelpers.cs
WalletWasabi/Helpers/EnvironmentHelpers.cs
@@ -56,7 +56,7 @@ namespace WalletWasabi.Helpers
{
var escapedArgs = cmd.Replace("\"", "\\\"");
- var process = new Process
+ using (var process = new Process
{
StartInfo = new ProcessStartInfo
{
@@ -67,8 +67,8 @@ namespace WalletWasabi.Helpers
FileName = "/bin/sh",
Arguments = $"-c \"{escapedArgs}\""
}
- };
-
+ })
+ {
process.Start();
if (waitForExit)
@@ -82,3 +82,4 @@ namespace WalletWasabi.Helpers
}
}
}
+}

Dispose process