-rw-r--r-- | libkcal/icalformatimpl.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libkcal/icalformatimpl.cpp b/libkcal/icalformatimpl.cpp index fe7413f..2405682 100644 --- a/libkcal/icalformatimpl.cpp +++ b/libkcal/icalformatimpl.cpp @@ -697,2 +697,3 @@ icalcomponent *ICalFormatImpl::writeAlarm(Alarm *alarm) } + icalattach_unref( attach ); break; @@ -703,2 +704,3 @@ icalcomponent *ICalFormatImpl::writeAlarm(Alarm *alarm) icalcomponent_add_property(a,icalproperty_new_attach(attach)); + icalattach_unref( attach ); } @@ -722,2 +724,3 @@ icalcomponent *ICalFormatImpl::writeAlarm(Alarm *alarm) icalcomponent_add_property(a,icalproperty_new_attach(attach)); + icalattach_unref( attach ); } |