The Birdfont Source Code


All Repositories / birdfont.git / blobdiff – RSS feed

Fix memory leak

Changes made to libbirdfont/Renderer/FallbackFont.vala

Contributing

Send patches or pull requests to johan.mattsson.m@gmail.com.
Clone this repository: git clone https://github.com/johanmattssonm/birdfont.git
--- libbirdfont/Renderer/FallbackFont.vala +++ libbirdfont/Renderer/FallbackFont.vala @@ -121,7 +121,7 @@ FontFace* font; bf_font = new Font (); - + for (int i = fallback_fonts.size - 1; i >= 0; i--) { f = fallback_fonts.get (i); @@ -153,8 +153,7 @@ bf_parser = new BirdFontFile (bf_font); bf_parser.load_data (((!) glyph_data).str); - bf_parser = new BirdFontFile (new Font ()); - + return bf_font; }