void CSametimeProto::DeinitUserList() { debugLog(_T("CSametimeProto::DeinitUserList()")); mwSession_removeService(session, mwService_AWARE); mwService_free((mwService*)service_aware); service_aware = 0; mwSession_removeService(session, mwService_RESOLVE); mwService_free((mwService*)service_resolve); service_resolve = 0; mwSession_removeService(session, mwService_STORAGE); mwService_free((mwService*)service_storage); service_storage = 0; }
void CSametimeProto::DeinitFiles() { debugLog(_T("CSametimeProto::DeinitFiles()")); mwSession_removeService(session, mwService_FILE_TRANSFER); mwService_free((mwService*)service_files); service_files = 0; }
void CSametimeProto::DeinitConference() { GList *conferences, *conf; debugLog(_T("CSametimeProto::DeinitConference()")); if (service_conference){ conferences = conf = mwServiceConference_getConferences(service_conference); for (;conf;conf = conf->next) { if (my_conference == conf->data) CloseMyConference(this); else { char* utfs = mir_utf8encodeT(TranslateT("I'm outa here.")); mwConference_destroy((mwConference*)conf->data, 0, utfs); mir_free(utfs); } } g_list_free(conferences); } my_login_info = 0; mwSession_removeService(session, mwService_CONFERENCE); if (service_conference){ mwService_free((mwService*)service_conference); service_conference = 0; } }
void DeinitMessaging(mwSession *session) { mwSession_removeService(session, mwService_IM); mwService_free((mwService *)service_im); service_im = 0; DeleteCriticalSection(&q_cs); }
MeanwhileSession::~MeanwhileSession() { HERE; if (isConnected() || isConnecting()) disconnect(); mwSession_removeService(session, mwService_STORAGE); mwSession_removeService(session, mwService_RESOLVE); mwSession_removeService(session, mwService_IM); mwSession_removeService(session, mwService_AWARE); mwAwareList_free(awareList); mwService_free(MW_SERVICE(storageService)); mwService_free(MW_SERVICE(resolveService)); mwService_free(MW_SERVICE(imService)); mwService_free(MW_SERVICE(awareService)); mwCipher_free(mwSession_getCipher(session, mwCipher_RC2_40)); mwCipher_free(mwSession_getCipher(session, mwCipher_RC2_128)); mwSession_free(session); }