Fix #92: Make sure the handle is closed

This commit is contained in:
Paddy Xu
2017-10-15 16:10:29 +03:00
parent 66fdeefe84
commit 6e5e7cb891
2 changed files with 5 additions and 4 deletions

View File

@@ -20,8 +20,6 @@ using System.Windows;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Media.Imaging;
using QuickLook.ExtensionMethods;
using QuickLook.Helpers;
namespace QuickLook.Plugin.ImageViewer.AnimatedImage
{
@@ -31,7 +29,7 @@ namespace QuickLook.Plugin.ImageViewer.AnimatedImage
{
var decoder =
new GifBitmapDecoder(new Uri(path), BitmapCreateOptions.PreservePixelFormat,
BitmapCacheOption.Default);
BitmapCacheOption.OnLoad);
var clock = TimeSpan.Zero;
BitmapSource prevFrame = null;