From aa84da37b9bd0f256fec92f467a07b7385ebd8b8 Mon Sep 17 00:00:00 2001 From: Gluzskiy Alexandr Date: Sat, 29 Apr 2017 20:06:03 +0300 Subject: jabber: omemo: forgotten bits.... --- protocols/JabberG/src/jabber_omemo.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'protocols') diff --git a/protocols/JabberG/src/jabber_omemo.cpp b/protocols/JabberG/src/jabber_omemo.cpp index 16144ea3e2..b4430cd6cf 100755 --- a/protocols/JabberG/src/jabber_omemo.cpp +++ b/protocols/JabberG/src/jabber_omemo.cpp @@ -844,7 +844,7 @@ namespace omemo { mir_free(*i); count++; } - mir_free(ud); + delete ud; return count; } @@ -1608,9 +1608,7 @@ void CJabberProto::OmemoSendBundle() //add prekeys HXML prekeys_node = XmlAddChild(bundle_node, L"prekeys"); - //TODO: use enum here db_enum_settings_prekeys_cb_data *ud = new db_enum_settings_prekeys_cb_data; - //ud->settings = std::list(); db_enum_settings(0, &db_enum_settings_prekeys_cb, m_szModuleName, (void*)ud); for (std::list::iterator i = ud->settings.begin(), end = ud->settings.end(); i != end; i++) { -- cgit v1.2.3