Release Unmanaged Object

Co-Authored-By: Alekhya  <28739210+alekhyareddy28@users.noreply.github.com>
This commit is contained in:
Kevin Zhang 2021-06-24 20:08:15 +08:00
parent 477d988456
commit 1511f4b725

View file

@ -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;
}
}
}