Skip to content

Commit 8623e72

Browse files
committed
fix(icon): fix not saving in cache the icon
1 parent 245d386 commit 8623e72

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

SoundSwitch.Common/Framework/Audio/Icon/AudioDeviceIconExtractor.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ System.Drawing.Icon ExtractAssociatedIcon()
6666
try
6767
{
6868
icon = ExtractAssociatedIcon();
69-
var entry = IconCache.CreateEntry(key);
69+
using var entry = IconCache.CreateEntry(key);
7070
entry.SetValue(icon)
7171
.SetSize(icon.Size.Height * icon.Size.Width)
7272
.SetSlidingExpiration(TimeSpan.FromMinutes(30))

0 commit comments

Comments
 (0)