diff options
Diffstat (limited to '')
-rw-r--r-- | widget_bar.c | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/widget_bar.c b/widget_bar.c index 5e80e5c..97bcaca 100644 --- a/widget_bar.c +++ b/widget_bar.c @@ -1,4 +1,4 @@ -/* $Id: widget_bar.c,v 1.7 2004/01/30 20:57:56 reinelt Exp $ +/* $Id: widget_bar.c,v 1.8 2004/03/03 03:47:04 reinelt Exp $ * * bar widget handling * @@ -21,6 +21,13 @@ * * * $Log: widget_bar.c,v $ + * Revision 1.8 2004/03/03 03:47:04 reinelt + * big patch from Martin Hejl: + * - use qprintf() where appropriate + * - save CPU cycles on gettimeofday() + * - add quit() functions to free allocated memory + * - fixed lots of memory leaks + * * Revision 1.7 2004/01/30 20:57:56 reinelt * HD44780 patch from Martin Hejl * dmalloc integrated @@ -209,10 +216,9 @@ int widget_bar_init (WIDGET *Self) int widget_bar_quit (WIDGET *Self) { - - if (Self->data) { - free (Self->data); - Self->data=NULL; + if (Self ) { + if (Self->data) free(Self->data); + Self->data=NULL; } return 0; |