Merge pull request #270 from nokola/master

Fix for panic in multiple_fonts.ts due to leaked FontStackToken
This commit is contained in:
Joonas Javanainen 2019-10-20 12:32:40 +03:00 committed by GitHub
commit c9561fa054
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -27,9 +27,9 @@ fn main() {
ui.text("Hello, I'm Roboto Regular!");
let _dokdo = ui.push_font(dokdo);
ui.text("Hello, I'm Dokdo Regular!");
drop(_dokdo);
_dokdo.pop(&ui);
ui.text("Hello, I'm Roboto Regular again!");
drop(_roboto);
_roboto.pop(&ui);
ui.text("Hello, I'm the default font again!");
});
});