From 1ef361684f8c6b892df9a364265c7ffa7d57adbd Mon Sep 17 00:00:00 2001 From: Dmitry Podgorny Date: Sat, 24 Aug 2013 00:37:00 +0300 Subject: [PATCH] tz should be cached in static variable --- src/log.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/log.c b/src/log.c index f6ce7b5b..14d801a9 100644 --- a/src/log.c +++ b/src/log.c @@ -308,8 +308,6 @@ GSList * chat_log_get_previous(const gchar * const login, const gchar * const recipient, GSList *history) { - GTimeZone *tz = g_time_zone_new_local(); - GDateTime *now = g_date_time_new_now_local(); GDateTime *log_date = g_date_time_new(tz, g_date_time_get_year(session_started), @@ -348,8 +346,6 @@ chat_log_get_previous(const gchar * const login, const gchar * const recipient, log_date = g_date_time_ref(next); } - g_time_zone_unref(tz); - return history; }