[gnome-system-log] Fix incorrect last updated times by not unrefing log_time too early



commit a09f87bafc833d199cfd8364dff72b4c2e812af8
Author: Daniel Wyatt <Daniel Wyatt gmail com>
Date:   Mon Dec 23 17:35:49 2013 -0500

    Fix incorrect last updated times by not unrefing log_time too early

 src/logview-window.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/logview-window.c b/src/logview-window.c
index 3d7a768..7639e01 100644
--- a/src/logview-window.c
+++ b/src/logview-window.c
@@ -191,7 +191,6 @@ logview_update_header (LogviewWindow *logview,
   log_time = g_date_time_new_from_unix_local (timestamp);
 
   text = logview_utils_format_date (log_time);
-  g_date_time_unref (log_time);
 
   /* translators: this is part of a label composed with
    * a date string, for example "updated today 23:54"
@@ -202,6 +201,7 @@ logview_update_header (LogviewWindow *logview,
   g_free (text);
 
   text = g_date_time_format (log_time, "%X");
+  g_date_time_unref (log_time);
   g_string_append (string, " ");
   g_string_append (string, text);
   g_free (text);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]