1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-18 16:10:26 +02:00

Properly dispose of variant result

This commit is contained in:
Brian Fiete 2021-12-27 14:02:51 -05:00
parent 9d63e3e585
commit 9cbc638873

View file

@ -105,7 +105,8 @@ namespace System.Reflection
argIdx++;
}
methodInfo.Invoke(targetAttr, params args);
if (methodInfo.Invoke(targetAttr, params args) case .Ok(var val))
val.Dispose();
return .Ok;
}