mirror of
https://github.com/Nioux/AideDeJeu.git
synced 2025-10-29 14:35:45 +00:00
Suppression memory leak potentiel
This commit is contained in:
parent
c82db7aeb2
commit
53d047f67d
1 changed files with 4 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue