mirror of
https://github.com/clockworkpi/LauncherGoDev.git
synced 2026-09-07 05:54:34 +02:00
fix memory leak by adding Free on font surface
This commit is contained in:
@@ -70,5 +70,5 @@ func (self *TextItem) Draw() {
|
||||
|
||||
rect_ := draw.MidRect(self.PosX,self.PosY,self.Width,self.Height,Width,Height)
|
||||
surface.Blit(self.Parent.GetCanvasHWND(),my_text,rect_,nil)
|
||||
|
||||
my_text.Free()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user