diff options
author | reinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f> | 2004-03-11 06:39:59 +0000 |
---|---|---|
committer | reinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f> | 2004-03-11 06:39:59 +0000 |
commit | 7d5c275cb8df79637212dc89ab980dabfc39a6df (patch) | |
tree | e3f51842280e06133de00726fa987765d4464f10 /widget_icon.c | |
parent | a3501369a917c15bdba91811a32c271bbc5dc5b0 (diff) | |
download | lcd4linux-7d5c275cb8df79637212dc89ab980dabfc39a6df.tar.gz |
[lcd4linux @ 2004-03-11 06:39:58 by reinelt]
big patch from Martin:
- reuse filehandles
- memory leaks fixed
- earlier busy-flag checking with HD44780
- reuse memory for strings in RESULT and hash
- netdev_fast to wavid time-consuming regex
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@393 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
Diffstat (limited to 'widget_icon.c')
-rw-r--r-- | widget_icon.c | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/widget_icon.c b/widget_icon.c index 421ca84..95edb8f 100644 --- a/widget_icon.c +++ b/widget_icon.c @@ -1,4 +1,4 @@ -/* $Id: widget_icon.c,v 1.10 2004/03/06 20:31:16 reinelt Exp $ +/* $Id: widget_icon.c,v 1.11 2004/03/11 06:39:59 reinelt Exp $ * * icon widget handling * @@ -21,6 +21,14 @@ * * * $Log: widget_icon.c,v $ + * Revision 1.11 2004/03/11 06:39:59 reinelt + * big patch from Martin: + * - reuse filehandles + * - memory leaks fixed + * - earlier busy-flag checking with HD44780 + * - reuse memory for strings in RESULT and hash + * - netdev_fast to wavid time-consuming regex + * * Revision 1.10 2004/03/06 20:31:16 reinelt * Complete rewrite of the evaluator to get rid of the code * from mark Morley (because of license issues). @@ -137,7 +145,7 @@ void widget_icon_update (void *Self) { WIDGET *W = (WIDGET*)Self; WIDGET_ICON *Icon = W->data; - RESULT result = {0, 0.0, NULL}; + RESULT result = {0, 0, 0, NULL}; // evaluate expressions Icon->speed = 100; @@ -229,6 +237,8 @@ int widget_icon_quit (WIDGET *Self) if (Self) { if (Self->data) { WIDGET_ICON *Icon = Self->data; + DelTree(Icon->speed_tree); + DelTree(Icon->visible_tree); if (Icon->bitmap) free (Icon->bitmap); free(Self->data); Self->data=NULL; |