Commit d410c7e6 authored by Simon Morlat's avatar Simon Morlat

Fix a small memory leak. Change tester_hosts to point to our new server.

parent cf16d4a4
...@@ -6064,6 +6064,12 @@ void _linphone_core_uninit(LinphoneCore *lc) ...@@ -6064,6 +6064,12 @@ void _linphone_core_uninit(LinphoneCore *lc)
if (lc->friends_db_file) { if (lc->friends_db_file) {
ms_free(lc->friends_db_file); ms_free(lc->friends_db_file);
} }
if (lc->tls_key){
ms_free(lc->tls_key);
}
if (lc->tls_cert){
ms_free(lc->tls_cert);
}
if (lc->ringtoneplayer) { if (lc->ringtoneplayer) {
linphone_ringtoneplayer_destroy(lc->ringtoneplayer); linphone_ringtoneplayer_destroy(lc->ringtoneplayer);
} }
......
...@@ -33,6 +33,7 @@ LINPHONE_BEGIN_NAMESPACE ...@@ -33,6 +33,7 @@ LINPHONE_BEGIN_NAMESPACE
class RemoteConferenceEventHandlerPrivate : public ObjectPrivate, public CoreListener { class RemoteConferenceEventHandlerPrivate : public ObjectPrivate, public CoreListener {
private: private:
~RemoteConferenceEventHandlerPrivate();
void simpleNotifyReceived (const std::string &xmlBody); void simpleNotifyReceived (const std::string &xmlBody);
void subscribe (); void subscribe ();
void unsubscribe (); void unsubscribe ();
......
...@@ -42,6 +42,12 @@ using namespace Xsd::ConferenceInfo; ...@@ -42,6 +42,12 @@ using namespace Xsd::ConferenceInfo;
// ----------------------------------------------------------------------------- // -----------------------------------------------------------------------------
RemoteConferenceEventHandlerPrivate::~RemoteConferenceEventHandlerPrivate(){
if (lev){
unsubscribe();
}
}
void RemoteConferenceEventHandlerPrivate::simpleNotifyReceived (const string &xmlBody) { void RemoteConferenceEventHandlerPrivate::simpleNotifyReceived (const string &xmlBody) {
istringstream data(xmlBody); istringstream data(xmlBody);
unique_ptr<ConferenceType> confInfo = parseConferenceInfo(data, Xsd::XmlSchema::Flags::dont_validate); unique_ptr<ConferenceType> confInfo = parseConferenceInfo(data, Xsd::XmlSchema::Flags::dont_validate);
......
94.23.19.176 sip2.linphone.org sip.example.org sipopen.example.org auth.example.org auth1.example.org auth2.example.org altname.linphone.org sip.wildcard1.linphone.org altname.wildcard2.linphone.org sipv4.example.org 54.37.202.228 sip2.linphone.org sip.example.org sipopen.example.org auth.example.org auth1.example.org auth2.example.org altname.linphone.org sip.wildcard1.linphone.org altname.wildcard2.linphone.org sipv4.example.org
2001:41d0:2:14b0::1 sip2.linphone.org sip.example.org sipopen.example.org auth.example.org auth1.example.org auth2.example.org altname.linphone.org sip.wildcard1.linphone.org altname.wildcard2.linphone.org 2001:41d0:700:789::2010 sip2.linphone.org sip.example.org sipopen.example.org auth.example.org auth1.example.org auth2.example.org altname.linphone.org sip.wildcard1.linphone.org altname.wildcard2.linphone.org
188.165.46.90 tunnel.wildcard2.linphone.org 188.165.46.90 tunnel.wildcard2.linphone.org
64:ff9b::94.23.19.176 sipv4-nat64.example.org 64:ff9b::54.37.202.228 sipv4-nat64.example.org
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment