summaryrefslogtreecommitdiffabout
path: root/libkcal/icalformatimpl.cpp
authorzautrix <zautrix>2005-04-20 10:43:07 (UTC)
committer zautrix <zautrix>2005-04-20 10:43:07 (UTC)
commitf23afbb9c09b4ee0f00af8f04ee4458181792cd0 (patch) (side-by-side diff)
tree807bcaf329d257ec2a0c5c6e3a6afc7ab53a6078 /libkcal/icalformatimpl.cpp
parent03f7f26ad34f50dd86f335c7c5a25a292d642793 (diff)
downloadkdepimpi-f23afbb9c09b4ee0f00af8f04ee4458181792cd0.zip
kdepimpi-f23afbb9c09b4ee0f00af8f04ee4458181792cd0.tar.gz
kdepimpi-f23afbb9c09b4ee0f00af8f04ee4458181792cd0.tar.bz2
fixes
Diffstat (limited to 'libkcal/icalformatimpl.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--libkcal/icalformatimpl.cpp7
1 files changed, 5 insertions, 2 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;
@@ -702,3 +703,4 @@ icalcomponent *ICalFormatImpl::writeAlarm(Alarm *alarm)
attach = icalattach_new_from_url(QFile::encodeName( alarm->audioFile() ).data());
- icalcomponent_add_property(a,icalproperty_new_attach(attach));
+ icalcomponent_add_property(a,icalproperty_new_attach(attach));
+ icalattach_unref( attach );
}
@@ -721,3 +723,4 @@ icalcomponent *ICalFormatImpl::writeAlarm(Alarm *alarm)
attach = icalattach_new_from_url(QFile::encodeName( *at ).data());
- icalcomponent_add_property(a,icalproperty_new_attach(attach));
+ icalcomponent_add_property(a,icalproperty_new_attach(attach));
+ icalattach_unref( attach );
}