Преглед на файлове

update extension app

git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1099 bbd45198-f89e-11dd-88c7-29a3b14d5316
qiuyiuestc преди 15 години
родител
ревизия
e01636a3ff
променени са 1 файла, в които са добавени 2 реда и са изтрити 2 реда
  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;
 }