break;\r
}\r
}\r
-\r
+ else if (type == TOPIC_SCHEDULER)\r
+ {\r
+ switch (task->taskType)\r
+ {\r
+ case TASK_SUBSCRIBE_TOPIC:\r
+ case TASK_UNSUBSCRIBE_TOPIC:\r
+ {\r
+ NSCacheTopicSubData * data = task->taskData;\r
+ OICFree(data->topicName);\r
+ OICFree(data);\r
+ }\r
+ break;\r
+ case TASK_ADD_TOPIC:\r
+ case TASK_DELETE_TOPIC:\r
+ {\r
+ OICFree(task->taskData);\r
+ }\r
+ break;\r
+ case TASK_SEND_TOPICS:\r
+ case TASK_POST_TOPIC:\r
+ {\r
+ NS_LOG(DEBUG, "TASK_POST_TOPIC : ");\r
+ NSFreeOCEntityHandlerRequest((OCEntityHandlerRequest*) task->taskData);\r
+ }\r
+ break;\r
+ default:\r
+ break;\r
+ }\r
+ }\r
NS_LOG(DEBUG, "NSFreeData - OUT");\r
}\r
return NS_ERROR;\r
}\r
OCRepPayloadDestroy(payload);\r
- NSFreeOCEntityHandlerRequest(entityHandlerRequest);\r
\r
NS_LOG(DEBUG, "NSSendTopicList - OUT");\r
return NS_OK;\r
case TASK_SEND_TOPICS:\r
NS_LOG(DEBUG, "CASE TASK_SEND_TOPICS : ");\r
NSSendTopicList((OCEntityHandlerRequest*) node->taskData);\r
+ NSFreeOCEntityHandlerRequest((OCEntityHandlerRequest*) node->taskData);\r
break;\r
case TASK_SUBSCRIBE_TOPIC:\r
NS_LOG(DEBUG, "CASE TASK_SUBSCRIBE_TOPIC : ");\r
{\r
NS_LOG(DEBUG, "TASK_POST_TOPIC : ");\r
NSPostConsumerTopics((OCEntityHandlerRequest*) node->taskData);\r
+ NSFreeOCEntityHandlerRequest((OCEntityHandlerRequest*) node->taskData);\r
}\r
break;\r
default:\r