mirror of
https://github.com/clockworkpi/LauncherGoDev.git
synced 2026-03-19 02:12:46 +01:00
fix memory leak by adding Free on font surface
This commit is contained in:
@@ -471,7 +471,7 @@ func (self *BleListMessageBox) Draw() {
|
||||
|
||||
rect2_ := rect.Rect(x,y,w,h)
|
||||
surface.Blit(self.CanvasHWND,my_text,&rect2_,nil)
|
||||
|
||||
my_text.Free()
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -383,7 +383,7 @@ func (self *WifiListMessageBox) Draw() {
|
||||
|
||||
rect_2 := rect.Rect(x,y,w,h)
|
||||
surface.Blit(self.CanvasHWND,my_text,&rect_2,nil)
|
||||
|
||||
my_text.Free()
|
||||
}
|
||||
|
||||
//---------WifiList---------------------------------
|
||||
|
||||
Reference in New Issue
Block a user