[gnome-shell] calendar-server: Fix a memory leak
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] calendar-server: Fix a memory leak
- Date: Fri, 8 Jul 2016 16:06:31 +0000 (UTC)
commit f5e1dc86cd67de9ef745933375426aad93caf315
Author: Florian Müllner <fmuellner gnome org>
Date: Fri Jul 8 17:50:35 2016 +0200
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 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/calendar-server/gnome-shell-calendar-server.c
b/src/calendar-server/gnome-shell-calendar-server.c
index f5b1e5f..49f92ea 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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]