int main() { OtrlUserState userstate; OTRL_INIT; userstate = otrl_userstate_create(); otrl_userstate_free(userstate); return 0; }
OTR_Wrapper::~OTR_Wrapper() { if (gOTR) { otrl_userstate_free(gOTR->userstate); } }
/* * Destroy otr user state. */ void otr_free_user_state(struct otr_user_state *ustate) { if (ustate->otr_state) { otrl_userstate_free(ustate->otr_state); ustate->otr_state = NULL; } free(ustate); }
extern "C" __declspec(dllexport) int Unload(void) { //UnhookEvent(hSettingChanged); UnhookEvent(hEventWindow); //UnhookEvent(hEventDbEventAddedFilter); //UnhookEvent(hEventDbEventAdded); DEBUGOUT_T("UNLOAD MIROTR"); DeinitSRMM(); DeinitDBFilter(); lib_cs_lock(); otrl_userstate_free(otr_user_state); return 0; }
int main(int argc, char **argv) { OTRL_INIT; us = otrl_userstate_create(); otrl_privkey_read(us, "/home/iang/.gaim/otr.private_key"); otrl_instag_read(us, "inst.txt"); test(1,0); test(2,0); test(3,0); test(1,1); test(2,1); test_unreadable(); test_crash1(); test_refresh(3); test_refresh(2); test_refresh(1); otrl_userstate_free(us); return 0; }
/** * deconstructor */ OtrConnection::~OtrConnection() { otrl_userstate_free(userstate); }
OtrInternal::~OtrInternal() { otrl_userstate_free(m_userstate); }
static void user_state_deallocate(void * data) { OtrlUserState us = data; otrl_userstate_free(us); }