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
This commit is contained in:
Florian Müllner 2016-07-08 17:50:35 +02:00
parent 8c51f0076f
commit f5e1dc86cd

View File

@ -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