Commit 0b086009 authored by Ghislain MARY's avatar Ghislain MARY
Browse files

Fix memory leak when cloning LinphoneContent objects.

parent 8f3ff2db
......@@ -33,6 +33,7 @@ static void linphone_content_destroy(LinphoneContent *content) {
}
static void linphone_content_clone(LinphoneContent *obj, const LinphoneContent *ref) {
obj->owned_fields = TRUE;
linphone_content_set_type(obj, linphone_content_get_type(ref));
linphone_content_set_subtype(obj, linphone_content_get_subtype(ref));
linphone_content_set_encoding(obj, linphone_content_get_encoding(ref));
......
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