Cleanup of (font) resources on destroy.

This commit is contained in:
Sander Schobers 2019-03-12 19:23:47 +01:00
parent 1d6587adbd
commit c973305b6d

View File

@ -98,6 +98,10 @@ func (r *Renderer) Refresh() {
func (r *Renderer) Destroy() error {
r.user.Destroy()
r.eq.Destroy()
for _, f := range r.ft {
f.Destroy()
}
r.ft = nil
r.disp.Destroy()
return nil
}