Skip to content

Commit

Permalink
fontinfo: Fix wrong delete
Browse files Browse the repository at this point in the history
Signed-off-by: Stefan Weil <sw@weilnetz.de>
  • Loading branch information
stweil committed Apr 7, 2019
1 parent 3dfe1b8 commit f88a7f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ccstruct/fontinfo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ void FontInfoTable::MoveSpacingInfoFrom(FontInfoTable* other) {
push_back(other->get(i));
other->get(i).name = nullptr;
} else {
delete [] get(target_index).spacing_vec;
delete get(target_index).spacing_vec;
get(target_index).spacing_vec = other->get(i).spacing_vec;
}
other->get(i).spacing_vec = nullptr;
Expand Down

0 comments on commit f88a7f2

Please sign in to comment.