Skip to content

Commit

Permalink
Fix memory leak
Browse files Browse the repository at this point in the history
We should release the resource
  • Loading branch information
lindexi committed Jul 3, 2019
1 parent 1eeb30a commit 0b5483a
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,9 @@ async void LoadSurface(CompositionDrawingSurface surface, string path)
var rect = new Windows.Foundation.Rect(0, 0, _rectWidth, _rectHeight);
ds.DrawImage(bitmap, 0, 0, rect);
}

stream.Dispose();
bitmap.Dispose();
}

IGraphicsEffect CreateAcrylicEffectGraph()
Expand Down

0 comments on commit 0b5483a

Please sign in to comment.