Skip to content

Commit 76159d6

Browse files
authored
Merge pull request #452 from Flow-Launcher/releaseComObject
Avoid AppxManifest.xml leak
2 parents d813a47 + 89757de commit 76159d6

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

Plugins/Flow.Launcher.Plugin.Program/Programs/UWP.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
using Flow.Launcher.Plugin.Program.Logger;
1818
using Rect = System.Windows.Rect;
1919
using Flow.Launcher.Plugin.SharedModels;
20+
using Flow.Launcher.Infrastructure.Logger;
2021

2122
namespace Flow.Launcher.Plugin.Program.Programs
2223
{
@@ -81,6 +82,11 @@ private void InitializeAppInfo()
8182

8283
Apps = new List<Application>().ToArray();
8384
}
85+
86+
if (Marshal.ReleaseComObject(stream) > 0)
87+
{
88+
Log.Error("Flow.Launcher.Plugin.Program.Programs.UWP", "AppxManifest.xml was leaked");
89+
}
8490
}
8591

8692

Plugins/Flow.Launcher.Plugin.Program/plugin.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"Name": "Program",
55
"Description": "Search programs in Flow.Launcher",
66
"Author": "qianlifeng",
7-
"Version": "1.5.0",
7+
"Version": "1.5.1",
88
"Language": "csharp",
99
"Website": "https://github.com/Flow-Launcher/Flow.Launcher",
1010
"ExecuteFileName": "Flow.Launcher.Plugin.Program.dll",

0 commit comments

Comments
 (0)