Use reference counts for GDateTimes #516

This commit is contained in:
James Booth
2015-06-30 16:11:39 +01:00
parent dd206ef637
commit d5f79c7b35
3 changed files with 7 additions and 2 deletions

View File

@@ -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);
}
}