mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-05-03 20:46:28 +00:00
Fix memory leak with call userInfos
This commit is contained in:
parent
0126d4c672
commit
e5ede7c400
1 changed files with 3 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue