|
|
@ -604,21 +604,37 @@ IedConnection_close(IedConnection self)
|
|
|
|
void
|
|
|
|
void
|
|
|
|
IedConnection_destroy(IedConnection self)
|
|
|
|
IedConnection_destroy(IedConnection self)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
printf("D1\n");
|
|
|
|
|
|
|
|
|
|
|
|
IedConnection_close(self);
|
|
|
|
IedConnection_close(self);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
printf("D2\n");
|
|
|
|
|
|
|
|
|
|
|
|
MmsConnection_destroy(self->connection);
|
|
|
|
MmsConnection_destroy(self->connection);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
printf("D3\n");
|
|
|
|
|
|
|
|
|
|
|
|
if (self->logicalDevices != NULL)
|
|
|
|
if (self->logicalDevices != NULL)
|
|
|
|
LinkedList_destroyDeep(self->logicalDevices, (LinkedListValueDeleteFunction) ICLogicalDevice_destroy);
|
|
|
|
LinkedList_destroyDeep(self->logicalDevices, (LinkedListValueDeleteFunction) ICLogicalDevice_destroy);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
printf("D4\n");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#if 0
|
|
|
|
if (self->enabledReports != NULL)
|
|
|
|
if (self->enabledReports != NULL)
|
|
|
|
LinkedList_destroyDeep(self->enabledReports, (LinkedListValueDeleteFunction) ClientReport_destroy);
|
|
|
|
LinkedList_destroyDeep(self->enabledReports, (LinkedListValueDeleteFunction) ClientReport_destroy);
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
LinkedList_destroyStatic(self->clientControls);
|
|
|
|
LinkedList_destroyStatic(self->clientControls);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
printf("D6\n");
|
|
|
|
|
|
|
|
|
|
|
|
Semaphore_destroy(self->stateMutex);
|
|
|
|
Semaphore_destroy(self->stateMutex);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
printf("D7\n");
|
|
|
|
|
|
|
|
|
|
|
|
GLOBAL_FREEMEM(self);
|
|
|
|
GLOBAL_FREEMEM(self);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
printf("D8\n");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
MmsVariableSpecification*
|
|
|
|
MmsVariableSpecification*
|
|
|
|