回答編集履歴
1
dispose
test
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
|
7
7
|
```ここに言語を入力
|
8
8
|
|
9
|
-
private Bitmap _canvas;
|
9
|
+
private Bitmap _canvas = null;
|
10
10
|
|
11
11
|
|
12
12
|
|
@@ -36,6 +36,16 @@
|
|
36
36
|
|
37
37
|
|
38
38
|
|
39
|
+
private void Form1_FormClosed(object sender, FormClosedEventArgs e)
|
40
|
+
|
41
|
+
{
|
42
|
+
|
43
|
+
if (_canvas != null) _canvas.Dispose();
|
44
|
+
|
45
|
+
}
|
46
|
+
|
47
|
+
|
48
|
+
|
39
49
|
private void Form1_Paint(object sender, PaintEventArgs e)
|
40
50
|
|
41
51
|
{
|