Skip to content

Commit f88a7f2

Browse files
committed
fontinfo: Fix wrong delete
Signed-off-by: Stefan Weil <sw@weilnetz.de>
1 parent 3dfe1b8 commit f88a7f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ccstruct/fontinfo.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ void FontInfoTable::MoveSpacingInfoFrom(FontInfoTable* other) {
9393
push_back(other->get(i));
9494
other->get(i).name = nullptr;
9595
} else {
96-
delete [] get(target_index).spacing_vec;
96+
delete get(target_index).spacing_vec;
9797
get(target_index).spacing_vec = other->get(i).spacing_vec;
9898
}
9999
other->get(i).spacing_vec = nullptr;

0 commit comments

Comments
 (0)