Browse Source

update extension app

git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1099 bbd45198-f89e-11dd-88c7-29a3b14d5316
qiuyiuestc 14 years ago
parent
commit
e01636a3ff
1 changed files with 2 additions and 2 deletions
  1. 2 2
      components/module/extapp/extapp.c

+ 2 - 2
components/module/extapp/extapp.c

@@ -27,8 +27,8 @@ int rt_application_entry(void)
 		if(f5 != RT_NULL) f5();
 		else rt_kprintf("dlsym function5 failed.\n");
 	}
-	
-	dlclose(handle);
+
+	if(handle != RT_NULL) dlclose(handle);
 
 	return 0;
 }