mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Merge pull request #488 from taooceros/ReleaseComObject
Release Unmanaged Object
This commit is contained in:
commit
2e412a0023
1 changed files with 5 additions and 0 deletions
|
|
@ -126,7 +126,12 @@ namespace Flow.Launcher.Plugin.Program.Programs
|
|||
((IShellLinkW)link).GetDescription(buffer, MAX_PATH);
|
||||
description = buffer.ToString();
|
||||
}
|
||||
|
||||
// To release unmanaged memory
|
||||
Marshal.ReleaseComObject(link);
|
||||
|
||||
return target;
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue