aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/pcs/cal-backend.c
diff options
context:
space:
mode:
authorSeth Alves <alves@src.gnome.org>2000-04-28 09:25:50 +0800
committerSeth Alves <alves@src.gnome.org>2000-04-28 09:25:50 +0800
commitff459aa292c80d9ad1c42ffa2c60d22ffc065579 (patch)
tree47194a0b7a1f3485f1b73f1886eb645d31ce4de2 /calendar/pcs/cal-backend.c
parentb53a001ef2c21094ec539619dfa2a406eac6ad23 (diff)
downloadgsoc2013-evolution-ff459aa292c80d9ad1c42ffa2c60d22ffc065579.tar.gz
gsoc2013-evolution-ff459aa292c80d9ad1c42ffa2c60d22ffc065579.tar.zst
gsoc2013-evolution-ff459aa292c80d9ad1c42ffa2c60d22ffc065579.zip
fix memory leak (save_to_vcal): same (save): same (cal_backend_load): same
* pcs/cal-backend.c (cal_backend_load): fix memory leak (save_to_vcal): same (save): same (cal_backend_load): same svn path=/trunk/; revision=2668
Diffstat (limited to 'calendar/pcs/cal-backend.c')
-rw-r--r--calendar/pcs/cal-backend.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/calendar/pcs/cal-backend.c b/calendar/pcs/cal-backend.c
index 364a4670c6..8864206cd2 100644
--- a/calendar/pcs/cal-backend.c
+++ b/calendar/pcs/cal-backend.c
@@ -190,6 +190,7 @@ save_to_vcal (CalBackend *backend, char *fname)
writeVObject(fp, vcal);
fclose(fp);
}
+ cleanVObject (vcal);
cleanStrTbl ();
}
@@ -224,6 +225,8 @@ save (CalBackend *backend)
break;
}
+ g_free (str_uri);
+
printf ("cal-backend: '%s' saved\n", str_uri);
}
@@ -755,6 +758,7 @@ cal_backend_load (CalBackend *backend, GnomeVFSURI *uri)
vobject = Parse_MIME_FromFileName (str_uri);
if (!vobject){
+ g_free (str_uri);
return CAL_BACKEND_LOAD_ERROR;
}
@@ -766,6 +770,7 @@ cal_backend_load (CalBackend *backend, GnomeVFSURI *uri)
icalendar_calendar_load (backend, str_uri);
break;
default:
+ g_free (str_uri);
return CAL_BACKEND_LOAD_ERROR;
}
ac'>Update KDE to the latest official release, KDE 3.1.3lofi2003-07-294-2/+6 * Update to KDE 3.1.2lioux2003-05-206-8/+12 * New port: localized messages and documentation for kofficelioux2003-05-205-0/+71 * upgrade to 0.5ijliao2003-05-095-16/+40 * Repo-move KDE I18N hebrew, hungarian, & vietnamese messages to theirwill2003-04-147-4/+13 * new port: Hebrew Type1 fontsedwin2003-04-146-0/+109 * typo USE_PERL -> USE_PERL5edwin2003-04-051-1/+1 * new port: Hebrew spellchecker and morphology engineedwin2003-04-027-0/+83 * Clear moonlight beckons.ade2003-03-074-2/+2 * De-pkg-comment.knu2003-02-216-3/+3 * Upgrade kde-i18n to 3.1. Note that the following modules did not get awill2003-01-294-36/+256 * 1. Removed comments from pkg-plist files per will's request.alane2002-10-114-4/+2 * Update to 3.0.3. Not much changed here: [1] i18n PKGNAMEs converted towill2002-08-254-8/+6 * 1. Changed the lib depends on gettext to a build depends. This will meanalane2002-08-032-4/+4 * Bump PORTREVISION. KDE is fragile enough in its dependencies; we don'talane2002-08-022-0/+2 * Chase shlib rev of devel/gettextade2002-08-022-2/+2 * Fix MASTER_SITE_SUBDIR.will2002-07-102-2/+2 * Update to 3.0.2 -- full log available in ports/x11/kde3/Makefile,v 1.51.will2002-07-056-12/+10 * Upgrade to KDE 3.0.1. The delay in this upgrade is mainly due to thewill2002-06-166-4/+12 * Please welcome Qt3/KDE3 to our ports tree. This includes work since thewill2002-04-2214-256/+732 * gettext upgrade uber-patch (stage 3)ade2002-04-132-2/+4 * Stage 1 of gettext update.ade2002-03-162-2/+2 * Update to 4.44.2.9pat2002-01-222-4/+5 * Add WWW.demon2001-12-282-0/+4 * Add he2 0.61, an editor for editing (primarily LaTeX) Hebrew files.will2001-12-259-0/+71 * Update to 2.2.2.demon2001-12-136-18/+32 * Update to 4.42.2.9pat2001-12-085-48/+29 * Upgrade to 2.2.1.demon2001-10-2712-52/+46 * Set DIST_SUBDIR=KDEdemon2001-09-114-2/+4 * MAINTAINER -> kde@FreeBSD.orgdemon2001-09-012-2/+2 * Fix installation in a slightly different way.demon2001-08-214-12/+16 * Remove two languages not presented in new version.demon2001-08-202-6/+2 * Forgot to remove debug comment.demon2001-08-162-2/+2 * Upgrade to 2.2.demon2001-08-1610-16/+62 * Remove Ukrainian from BATCH builds.demon2001-07-052-2/+2 * Exclude de, fr, ja, ru, zh_CN, zh_TW from bento's package.demon2001-04-172-2/+2 * Sort languages by name.demon2001-04-132-20/+20 * Examine LINGUAS variable before BATCH.demon2001-04-112-10/+10 * Allow to override MAINTAINER and CATEGORIES (in slave ports).demon2001-04-102-4/+4 * Add the ability to select which languages to install via dialog(1)-baseddemon2001-04-104-0/+174 * Update to 2.1.1demon2001-04-066-26/+4 * Overhaul QT/KDE support:will2001-04-032-4/+4 * New port: localized messages and documentation for KDE2.demon2001-03-0210-0/+76 * This is an updated of the hebrew/pine port to Pine 4.33, with Hebrew supportjeh2001-02-123-5/+5 * Update of the Hebrew version of pine to 4.30-2.09 (with the security bugkevlo2000-11-025-40/+46 * Bump PORTREVISION due to security fix.kris2000-10-301-0/+1 * Add a patch to address the known remote buffer overflow, fromkris2000-10-302-2/+14 * Change PKGDIR from pkg/ to . Also fix places where ${PKGDIR} isasami2000-10-081-1/+1 * Mark all of the pine3/4 ports FORBIDDEN due to remotely exploitablekris2000-09-291-0/+2 * Back out the previous commit. That one has a problem which occurs onknu2000-08-281-5/+1 * PKGNAMEPREFIX cleanup. This should allow chained PKGNAMEPREFIX'es.knu2000-08-271-1/+5 * Move pine in the right place -- addport isn't too intelligent atasami2000-08-101-1/+1 * Add pine with hebrew support.nbm2000-08-0226-0/+916 * According to iso639, 'iw' is used to represent the Hebrew language.nbm2000-08-021-0/+4 * Put the SUBDIR in the right place - addport isn't too intelligent atnbm2000-08-021-2/+1 * Add elmar-fonts, hebrew fonts for use with X.nbm2000-08-027-0/+106 * Add new category hebrew -- Hebrew language support.asami2000-07-312