فهرست منبع

Make SharpDX dispose of its resources.

Steven Kirk 9 سال پیش
والد
کامیت
9ebfa5cd0c
1فایلهای تغییر یافته به همراه1 افزوده شده و 0 حذف شده
  1. 1 0
      src/Windows/Avalonia.Direct2D1/Direct2D1Platform.cs

+ 1 - 0
src/Windows/Avalonia.Direct2D1/Direct2D1Platform.cs

@@ -43,6 +43,7 @@ namespace Avalonia.Direct2D1
             .BindToSelf(s_d2D1Factory)
             .BindToSelf(s_dwfactory)
             .BindToSelf(s_imagingFactory);
+            SharpDX.Configuration.EnableReleaseOnFinalizer = true;
 
         public IBitmapImpl CreateBitmap(int width, int height)
         {