about summary refs log tree commit diff stats
path: root/src/ui/buffer.c
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2015-03-17 20:42:21 +0000
committerJames Booth <boothj5@gmail.com>2015-03-17 20:42:21 +0000
commitd6977e31cd933917c748983caaa511e8b12cbb02 (patch)
tree76c24f625088666a45043093fca869c69a4cdd0c /src/ui/buffer.c
parent311b64a379a7af82b09ec4424246b892cedcfeb9 (diff)
downloadprofani-tty-d6977e31cd933917c748983caaa511e8b12cbb02.tar.gz
Fix buffer entry free
Diffstat (limited to 'src/ui/buffer.c')
-rw-r--r--src/ui/buffer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ui/buffer.c b/src/ui/buffer.c
index d16eec76..40a994f1 100644
--- a/src/ui/buffer.c
+++ b/src/ui/buffer.c
@@ -131,9 +131,9 @@ _free_entry(ProfBuffEntry *entry)
     free(entry->message);
     free(entry->from);
     g_date_time_unref(entry->time);
-    free(entry);
     if (entry->receipt) {
         free(entry->receipt->id);
         free(entry->receipt);
     }
+    free(entry);
 }
\ No newline at end of file