We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 877e62d commit d91c316Copy full SHA for d91c316
src/ccstruct/fontinfo.cpp
@@ -2,7 +2,6 @@
2
// File: fontinfo.cpp
3
// Description: Font information classes abstracted from intproto.h/cpp.
4
// Author: [email protected] (Ray Smith)
5
-// Created: Wed May 18 10:39:01 PDT 2011
6
//
7
// (C) Copyright 2011, Google Inc.
8
// Licensed under the Apache License, Version 2.0 (the "License");
@@ -140,8 +139,10 @@ void FontInfoDeleteCallback(FontInfo f) {
140
139
if (f.spacing_vec != nullptr) {
141
f.spacing_vec->delete_data_pointers();
142
delete f.spacing_vec;
+ f.spacing_vec = nullptr;
143
}
144
delete[] f.name;
145
+ f.name = nullptr;
146
147
void FontSetDeleteCallback(FontSet fs) {
148
delete[] fs.configs;
0 commit comments