The Birdfont Source Code


All Repositories / birdfont.git / blobdiff – RSS feed

Fix memory leak

Changes made to libbirdfont/Ligatures.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/Ligatures.vala +++ libbirdfont/Ligatures.vala @@ -31,6 +31,10 @@ public Ligatures (Font font) { this.font = font; + + font.font_deleted.connect (() => { + this.font = Font.empty; + }); } public void get_ligatures (LigatureIterator iter) {