Explorar o código

Destroy screenshot tex before cleanup

ghorsington %!s(int64=4) %!d(string=hai) anos
pai
achega
a412509b75
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      COM3D2.ToukaScreenShot.Plugin/ToukaScreenShot.cs

+ 2 - 0
COM3D2.ToukaScreenShot.Plugin/ToukaScreenShot.cs

@@ -108,6 +108,8 @@ namespace CM3D2.ToukaScreenShot.Plugin
             var ss = GetToukaScreenShot();
             File.WriteAllBytes(GetTimeFileName(), ss.EncodeToPNG());
             
+            Destroy(ss);
+            
             // Actually unload textures and GC unused stuff to free up memory
             yield return Resources.UnloadUnusedAssets();
             GC.Collect();