From e5ede7c400567056e5733ab0d04054ca1e7b7d23 Mon Sep 17 00:00:00 2001 From: Yann Diorcet Date: Mon, 1 Oct 2012 11:55:04 +0200 Subject: [PATCH] Fix memory leak with call userInfos --- Classes/LinphoneManager.m | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Classes/LinphoneManager.m b/Classes/LinphoneManager.m index ce5a14580..80a8e4eb6 100644 --- a/Classes/LinphoneManager.m +++ b/Classes/LinphoneManager.m @@ -372,7 +372,9 @@ static void linphone_iphone_display_status(struct _LinphoneCore * lc, const char [ct release]; if(state == LinphoneCallReleased) { - if(linphone_call_get_user_pointer(call) != NULL) { + LinphoneCallAppData* data = linphone_call_get_user_pointer(call); + if(data != NULL) { + [data->userInfos release]; free (linphone_call_get_user_pointer(call)); linphone_call_set_user_pointer(call, NULL); }