aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2013-06-13 09:58:15 +1000
committernyamatongwe <devnull@localhost>2013-06-13 09:58:15 +1000
commit028e0e68aa63e5e8c081fc0afe866298c42d42ce (patch)
tree83be26ee5a8366952bfafa2df900444fe788933c
parent226f8c6909ab32d4b5b4dac1493e4ed2bf1c143f (diff)
downloadscintilla-mirror-028e0e68aa63e5e8c081fc0afe866298c42d42ce.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();
}