Fix memory leak with call userInfos

This commit is contained in:
Yann Diorcet 2012-10-01 11:55:04 +02:00
parent 0126d4c672
commit e5ede7c400

View file

@ -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);
}