void cg_upnp_argumentlist_delete(CgUpnpArgumentList *argumentList) { cg_log_debug_l4("Entering...\n"); cg_list_clear((CgList*)argumentList, (CG_LIST_DESTRUCTORFUNC)cg_upnp_argument_delete); free(argumentList); cg_log_debug_l4("Leaving...\n"); }
void cg_http_persistentconnection_clear(void) { cg_log_debug_l4("Entering...\n"); /* If we dont have cache, then just exit */ if (cache == NULL) return; cg_http_persistentconnection_lock(); cg_list_clear((CgList*)cache, (CG_LIST_DESTRUCTORFUNC)cg_http_persistentconnection_delete); free(cache); cache = NULL; cg_http_persistentconnection_unlock(); cg_mutex_delete(persistent_connection_mutex); persistent_connection_mutex = NULL; cg_log_debug_l4("Leaving...\n"); }