From 9ae31c538923bfee4631547735c8ca6d9d8a05a7 Mon Sep 17 00:00:00 2001 From: Tectu Date: Tue, 26 Jun 2012 13:58:41 +0200 Subject: [PATCH] free memory --- gui.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gui.c b/gui.c index 895eb3dd..45a9d686 100644 --- a/gui.c +++ b/gui.c @@ -130,6 +130,8 @@ uint8_t guiDrawButton(uint16_t x0, uint16_t y0, uint16_t x1, uint16_t y1, char * lcdDrawRectString(x0, y0, x1, y1, str, fontColor, buttonColor); + chHeapFree(newNode); + return 1; }