summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKen Murchison <murch@fastmail.com>2019-08-12 15:21:27 -0400
committerAllen Winter <allen.winter@kdab.com>2019-08-13 07:45:47 -0400
commit077146cba32bb569dda33045d41f9a64fb099078 (patch)
tree9d61cb9b718fb0b8bab5d0a3eb681e20627f8918
parent5954ad95a9a6279e4ac3a28d88be4bb63e0ca939 (diff)
downloadlibical-git-077146cba32bb569dda33045d41f9a64fb099078.tar.gz
icalproperty.c: need to orphan the params before removal during normalization
-rw-r--r--src/libical/icalproperty.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libical/icalproperty.c b/src/libical/icalproperty.c
index 4c683326..7a6ca7f4 100644
--- a/src/libical/icalproperty.c
+++ b/src/libical/icalproperty.c
@@ -967,6 +967,8 @@ void icalproperty_normalize(icalproperty *prop)
icalparameter *param;
while ((param = pvl_pop(prop->parameters)) != 0) {
+ icalparameter_set_parent(param, 0);
+
/* Skip parameters having default values */
switch (icalparameter_isa(param)) {
case ICAL_VALUE_PARAMETER: