diff --git a/AideDeJeu/AideDeJeu/Views/MonsterDetailPage.xaml.cs b/AideDeJeu/AideDeJeu/Views/MonsterDetailPage.xaml.cs index 6f934e46..d43cadb0 100644 --- a/AideDeJeu/AideDeJeu/Views/MonsterDetailPage.xaml.cs +++ b/AideDeJeu/AideDeJeu/Views/MonsterDetailPage.xaml.cs @@ -62,6 +62,8 @@ namespace AideDeJeu.Views paint.Color = SKColors.Black; canvas.DrawPath(path, paint); + paint.Dispose(); + path.Dispose(); } void PaintRedBar(object sender, SKPaintSurfaceEventArgs args) @@ -85,6 +87,8 @@ namespace AideDeJeu.Views }; canvas.DrawPath(path, paint); + paint.Dispose(); + path.Dispose(); //paint.Style = SKPaintStyle.Stroke; //paint.StrokeWidth = 2;