aboutsummaryrefslogtreecommitdiff
path: root/src/engine-eds.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/engine-eds.cpp')
-rw-r--r--src/engine-eds.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/engine-eds.cpp b/src/engine-eds.cpp
index 585841b..7f5e080 100644
--- a/src/engine-eds.cpp
+++ b/src/engine-eds.cpp
@@ -102,6 +102,8 @@ public:
auto gtz = timezone_from_name(tz, nullptr, nullptr, &default_timezone);
if (gtz == nullptr) {
gtz = g_time_zone_new_local();
+ } else {
+ g_time_zone_ref(gtz);
}
g_debug("default_timezone is %s", default_timezone ? i_cal_timezone_get_display_name(default_timezone) : "null");