mirror of
https://github.com/clockworkpi/LauncherGoDev.git
synced 2026-09-06 13:34:36 +02:00
fix memory leak by adding Free on font surface
This commit is contained in:
@@ -118,6 +118,7 @@ func (self *MessageBox) Draw() {
|
||||
|
||||
dest_rect := rect.Rect(x,y, word_width,word_height)
|
||||
surface.Blit(self.CanvasHWND, word_surface, &dest_rect,nil)
|
||||
word_surface.Free()
|
||||
if len(words) == 1 {
|
||||
x+=word_width
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user