diff options
author | Joe Wilm <joe@jwilm.com> | 2017-10-14 18:58:19 -0700 |
---|---|---|
committer | Joe Wilm <joe@jwilm.com> | 2017-10-14 19:07:43 -0700 |
commit | e8f5ab89ee0b6810649f76c6dbd15ee1105554e8 (patch) | |
tree | f9ba9fa4e23f99b3b9ecfde84d32bce03730f7a4 /src/main.rs | |
parent | 8a0b1d9c3f5a9ddb98469a340bbcd06374d4a24e (diff) | |
download | alacritty-e8f5ab89ee0b6810649f76c6dbd15ee1105554e8.tar.gz alacritty-e8f5ab89ee0b6810649f76c6dbd15ee1105554e8.zip |
Fix memory leak from font resizing
The source of the leak was loading up multiple copies of the FT_face
even when not necessary. Fonts are now appropriately cached for
FreeType when going through the `Rasterize::load_font` API.
Additionally, textures in the glyph cache are now reused.
The result of this is that resizing to already loaded fonts is free
from a memory consumption perspective.
Diffstat (limited to 'src/main.rs')
-rw-r--r-- | src/main.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main.rs b/src/main.rs index ca7a40c6..129c1618 100644 --- a/src/main.rs +++ b/src/main.rs @@ -15,6 +15,7 @@ //! Alacritty - The GPU Enhanced Terminal #![cfg_attr(feature = "clippy", plugin(clippy))] #![cfg_attr(feature = "clippy", feature(plugin))] +#![feature(alloc_system)] extern crate alloc_system; #[macro_use] extern crate alacritty; |