Fix memory leak when cloning LinphoneContent objects.

This commit is contained in:
Ghislain MARY 2015-02-18 18:14:54 +01:00
parent 8f3ff2dbd9
commit 0b086009e9

View file

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