about summary refs log tree commit diff stats
path: root/src/ui
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2015-06-30 16:11:39 +0100
committerJames Booth <boothj5@gmail.com>2015-06-30 16:21:21 +0100
commitd5f79c7b358507288dfc6d32b59d11164c9c377a (patch)
tree0d516475858c4f1e59761327d383831290247ff0 /src/ui
parentdd206ef637e8f29d5b78f2b72ff27badaec1b14e (diff)
downloadprofani-tty-d5f79c7b358507288dfc6d32b59d11164c9c377a.tar.gz
Use reference counts for GDateTimes #516
Diffstat (limited to 'src/ui')
-rw-r--r--src/ui/buffer.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ui/buffer.c b/src/ui/buffer.c
index 0848b60f..b4771f1a 100644
--- a/src/ui/buffer.c
+++ b/src/ui/buffer.c
@@ -87,7 +87,7 @@ buffer_push(ProfBuff buffer, const char show_char, GDateTime *time,
     e->show_char = show_char;
     e->flags = flags;
     e->theme_item = theme_item;
-    e->time = time;
+    e->time = g_date_time_ref(time);
     e->from = strdup(from);
     e->message = strdup(message);
     e->receipt = receipt;
@@ -136,4 +136,4 @@ _free_entry(ProfBuffEntry *entry)
         free(entry->receipt);
     }
     free(entry);
-}
\ No newline at end of file
+}