mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Release Unmanaged Object
Co-Authored-By: Alekhya <28739210+alekhyareddy28@users.noreply.github.com>
This commit is contained in:
parent
477d988456
commit
1511f4b725
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