Added explicit datalink_cleanup to all demo applications.

Moved bip_cleanup() to port specific files.
This works better for bacnet-stack DLLs.
This commit is contained in:
skarg
2012-02-10 22:12:15 +00:00
parent 2e6a060b26
commit 9e8c2b0927
25 changed files with 86 additions and 56 deletions
+2
View File
@@ -1254,6 +1254,7 @@ int main(
address_init();
Init_Service_Handlers();
dlenv_init();
atexit(datalink_cleanup);
/* configure the timeout values */
current_seconds = time(NULL);
@@ -1619,6 +1620,7 @@ int main(
printf("End of BACnet Protocol Implementation Conformance Statement\r\n");
printf("\r\n");
}
return 0;
}