diff options
| author | Carl Hetherington <cth@carlh.net> | 2015-11-29 15:37:56 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2015-11-29 15:37:56 +0000 |
| commit | 1c2644f220d356b3a2472f985062d907d7149871 (patch) | |
| tree | a03e56d489ac846f44d6c0f411480bf06c306fea /src/lib | |
| parent | 46778b8ba8819feb21bdce1e6b2d5445959ac514 (diff) | |
Fix ridiculous thinko causing repeated calls to FcConfigAppFontAddFile and hence memory leak (may fix #766).
Diffstat (limited to 'src/lib')
| -rw-r--r-- | src/lib/font_files.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/font_files.cc b/src/lib/font_files.cc index 65b67f7b3..61da986bf 100644 --- a/src/lib/font_files.cc +++ b/src/lib/font_files.cc @@ -24,9 +24,9 @@ operator!= (FontFiles const & a, FontFiles const & b) { for (int i = 0; i < FontFiles::VARIANTS; ++i) { if (a.get(static_cast<FontFiles::Variant>(i)) != b.get(static_cast<FontFiles::Variant>(i))) { - return false; + return true; } } - return true; + return false; } |
