From 74c44f6c251412c36bc0dddbdef5221d7b7d9db3 Mon Sep 17 00:00:00 2001 From: Simon Morlat Date: Thu, 18 Dec 2014 19:15:29 +0100 Subject: [PATCH] User pointer must remain the property of the user. --- coreapi/linphonecore.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/coreapi/linphonecore.c b/coreapi/linphonecore.c index 152128a2c..d5248b96e 100644 --- a/coreapi/linphonecore.c +++ b/coreapi/linphonecore.c @@ -7087,9 +7087,6 @@ LinphoneCoreVTable *linphone_core_v_table_new() { } void linphone_core_v_table_set_user_data(LinphoneCoreVTable *table, void *data) { - if (table->user_data) { - ms_free(table->user_data); - } table->user_data = data; } @@ -7098,9 +7095,6 @@ void* linphone_core_v_table_get_user_data(LinphoneCoreVTable *table) { } void linphone_core_v_table_destroy(LinphoneCoreVTable* table) { - if (table->user_data) { - ms_free(table->user_data); - } ms_free(table); }