Cleanup of (font) resources on destroy.
This commit is contained in:
parent
1d6587adbd
commit
c973305b6d
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user