From f5e1dc86cd67de9ef745933375426aad93caf315 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Fri, 8 Jul 2016 17:50:35 +0200 Subject: [PATCH] calendar-server: Fix a memory leak App will take ownership of the location string when the timezone changes, but not when there was no change - free the memory in that case. https://bugzilla.gnome.org/show_bug.cgi?id=748226 --- src/calendar-server/gnome-shell-calendar-server.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/calendar-server/gnome-shell-calendar-server.c b/src/calendar-server/gnome-shell-calendar-server.c index f5b1e5f9d..49f92ea22 100644 --- a/src/calendar-server/gnome-shell-calendar-server.c +++ b/src/calendar-server/gnome-shell-calendar-server.c @@ -526,6 +526,10 @@ app_update_timezone (App *app) app->timezone_location = location; print_debug ("Using timezone %s", app->timezone_location); } + else + { + g_free (location); + } } static gboolean