From b0b908efce88697319ab23a6ab3fe320a2d06131 Mon Sep 17 00:00:00 2001 From: Simon Morlat Date: Wed, 21 Mar 2018 10:57:06 +0100 Subject: [PATCH] Avoid detection of false leaks due to the address cache. --- coreapi/factory.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/coreapi/factory.c b/coreapi/factory.c index 1c52181ea..e316a93ba 100644 --- a/coreapi/factory.c +++ b/coreapi/factory.c @@ -21,6 +21,8 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. #include "c-wrapper/c-wrapper.h" +#include "address/address-p.h" + // TODO: From coreapi. Remove me later. #include "private.h" @@ -145,6 +147,7 @@ LinphoneFactory *linphone_factory_get(void) { } void linphone_factory_clean(void){ + LinphonePrivate::AddressPrivate::clearSipAddressesCache(); if (_factory){ belle_sip_object_unref(_factory); _factory = NULL;