mirror of
https://github.com/clockworkpi/LauncherGoDev.git
synced 2026-09-06 05:24:36 +02:00
fix memory leak by adding Free on font surface
This commit is contained in:
@@ -126,6 +126,7 @@ func (self *MultiLabel) blit_text(surf *sdl.Surface,text string, pos_x,pos_y int
|
||||
}
|
||||
rect_ := rect.Rect(x,y,self.Width,self.Height)
|
||||
surface.Blit(surf,word_surface,&rect_,nil)
|
||||
word_surface.Free()
|
||||
x += (word_width+space)
|
||||
}
|
||||
x = pos_x
|
||||
|
||||
Reference in New Issue
Block a user