Some memory leaks and out of bounds array access fixed (#4498)

This commit is contained in:
Damjan Adamic
2017-02-26 12:39:26 +01:00
committed by Bertrand Songis
parent 1910af51b6
commit 7081f924de
7 changed files with 35 additions and 31 deletions
+1
View File
@@ -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();
}