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:
parent
9d63e3e585
commit
9cbc638873
1 changed files with 2 additions and 1 deletions
|
@ -105,7 +105,8 @@ namespace System.Reflection
|
||||||
argIdx++;
|
argIdx++;
|
||||||
}
|
}
|
||||||
|
|
||||||
methodInfo.Invoke(targetAttr, params args);
|
if (methodInfo.Invoke(targetAttr, params args) case .Ok(var val))
|
||||||
|
val.Dispose();
|
||||||
return .Ok;
|
return .Ok;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue