Commit 74c44f6c authored by Simon Morlat's avatar Simon Morlat
Browse files

User pointer must remain the property of the user.

parent 8f633b21
...@@ -7087,9 +7087,6 @@ LinphoneCoreVTable *linphone_core_v_table_new() { ...@@ -7087,9 +7087,6 @@ LinphoneCoreVTable *linphone_core_v_table_new() {
} }
void linphone_core_v_table_set_user_data(LinphoneCoreVTable *table, void *data) { 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; table->user_data = data;
} }
...@@ -7098,9 +7095,6 @@ void* linphone_core_v_table_get_user_data(LinphoneCoreVTable *table) { ...@@ -7098,9 +7095,6 @@ void* linphone_core_v_table_get_user_data(LinphoneCoreVTable *table) {
} }
void linphone_core_v_table_destroy(LinphoneCoreVTable* table) { void linphone_core_v_table_destroy(LinphoneCoreVTable* table) {
if (table->user_data) {
ms_free(table->user_data);
}
ms_free(table); ms_free(table);
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment