Program now exit their process and unload themselves if possible
diff --git a/contiki/apps/www.c b/contiki/apps/www.c
index da5189b..eb0c0f4 100644
--- a/contiki/apps/www.c
+++ b/contiki/apps/www.c
@@ -32,7 +32,7 @@
*
* This file is part of the Contiki desktop environment
*
- * $Id: www.c,v 1.4 2003/04/08 07:20:11 adamdunkels Exp $
+ * $Id: www.c,v 1.5 2003/04/08 11:50:20 adamdunkels Exp $
*
*/
@@ -46,6 +46,8 @@
#include "petsciiconv.h"
+#include "loader.h"
+
#include "www-conf.h"
#if 0
@@ -198,7 +200,7 @@
* to open the browser window.
*/
void
-www_init(void)
+www_init(void)
{
if(id == EK_ID_NONE) {
id = dispatcher_start(&p);
@@ -472,6 +474,7 @@
} else if(s == ctk_signal_window_close) {
dispatcher_exit(&p);
id = 0;
+ LOADER_UNLOAD();
}
}
/*-----------------------------------------------------------------------------------*/