Commit 75b0ed4
committed
ext/com_dotnet: release the held IUnknown in com_get_active_object()
The cleanup block guarded on `unk` but released `obj`, so a successful
GetActiveObject() released the IDispatch proxy twice (once already under
the obj guard) and never released the IUnknown it returned, leaking it.
Release `unk` so each interface pointer is released exactly once.1 parent 19f595f commit 75b0ed4
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
321 | 321 | | |
322 | 322 | | |
323 | 323 | | |
324 | | - | |
| 324 | + | |
325 | 325 | | |
326 | 326 | | |
327 | 327 | | |
| |||
0 commit comments