Some memory leaks and out of bounds array access fixed (#4498)
This commit is contained in:
committed by
Bertrand Songis
parent
1910af51b6
commit
7081f924de
@@ -370,6 +370,7 @@ void drawSleepBitmap()
|
||||
const BitmapBuffer * bitmap = BitmapBuffer::load(getThemePath("sleep.bmp"));
|
||||
if (bitmap) {
|
||||
lcd->drawBitmap((LCD_W-bitmap->getWidth())/2, (LCD_H-bitmap->getHeight())/2, bitmap);
|
||||
delete bitmap;
|
||||
}
|
||||
lcdRefresh();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user