aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/pcs
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
parentb53a001ef2c21094ec539619dfa2a406eac6ad23 (diff)
downloadgsoc2013-evolution-ff459aa292c80d9ad1c42ffa2c60d22ffc065579.tar
gsoc2013-evolution-ff459aa292c80d9ad1c42ffa2c60d22ffc065579.tar.gz
gsoc2013-evolution-ff459aa292c80d9ad1c42ffa2c60d22ffc065579.tar.bz2
gsoc2013-evolution-ff459aa292c80d9ad1c42ffa2c60d22ffc065579.tar.lz
gsoc2013-evolution-ff459aa292c80d9ad1c42ffa2c60d22ffc065579.tar.xz
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')
-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;
}