The Birdfont Source Code


All Repositories / birdfont.git / blobdiff – RSS feed

Fix memory leak

Changes made to libbirdfont/KerningClasses.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/KerningClasses.vala +++ libbirdfont/KerningClasses.vala @@ -41,6 +41,10 @@ public KerningClasses (Font font) { this.font = font; + + font.font_deleted.connect (() => { + this.font = Font.empty; + }); classes_first = new Gee.ArrayList<GlyphRange> (); classes_last = new Gee.ArrayList<GlyphRange> ();