aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornyamatongwe <unknown>2013-06-13 09:58:15 +1000
committernyamatongwe <unknown>2013-06-13 09:58:15 +1000
commit40001d9a50daae00022640a7abb8f9508022577a (patch)
treeace638fe3cc1c3103730c34dba75d18d5bd5f828
parent0b4225d36d27d19301a19bad3d9bf6ecfe51b05d (diff)
downloadscintilla-mirror-40001d9a50daae00022640a7abb8f9508022577a.tar.gz
Bug: [#1487]. Fix memory leak of font names.
-rw-r--r--src/ViewStyle.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/ViewStyle.cxx b/src/ViewStyle.cxx
index 9991aa02f..fad487e6b 100644
--- a/src/ViewStyle.cxx
+++ b/src/ViewStyle.cxx
@@ -40,6 +40,9 @@ FontNames::~FontNames() {
}
void FontNames::Clear() {
+ for (std::vector<char *>::const_iterator it=names.begin(); it != names.end(); ++it) {
+ delete []*it;
+ }
names.clear();
}