aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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;
}