Fix memory leak dynamic font
This commit is contained in:
parent
99fdf25613
commit
f92ad30dfd
1 changed files with 1 additions and 0 deletions
|
@ -132,6 +132,7 @@ Error DynamicFontAtSize::_load() {
|
||||||
f->get_buffer(font->_fontdata.ptrw(), len);
|
f->get_buffer(font->_fontdata.ptrw(), len);
|
||||||
font->set_font_ptr(font->_fontdata.ptr(), len);
|
font->set_font_ptr(font->_fontdata.ptr(), len);
|
||||||
f->close();
|
f->close();
|
||||||
|
memdelete(f);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (font->font_mem) {
|
if (font->font_mem) {
|
||||||
|
|
Loading…
Reference in a new issue