mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-18 08:06:04 +02:00
Properly dispose of variant result
This commit is contained in:
parent
9d63e3e585
commit
9cbc638873
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue