Skip to content

Commit d8686ae

Browse files
committed
风雨如晦,鸡鸣不已
漏写方括号
1 parent 2fc75a4 commit d8686ae

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/Types.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,15 @@ struct MapSquare
1919
{
2020
if (data_)
2121
{
22-
delete data_;
22+
delete[] data_;
2323
}
2424
}
2525
//不会保留原始数据
2626
void resize(int x)
2727
{
2828
if (data_)
2929
{
30-
delete data_;
30+
delete[] data_;
3131
}
3232
data_ = new T[x * x];
3333
line_ = x;

0 commit comments

Comments
 (0)