mirror of
https://github.com/profanity-im/profanity.git
synced 2024-12-04 14:46:46 -05:00
Fixed memory leaks
This commit is contained in:
parent
f983438e97
commit
b6faeaaa76
@ -118,5 +118,6 @@ _free_entry(ProfBuffEntry *entry)
|
||||
free(entry->message);
|
||||
free(entry->from);
|
||||
free(entry->date_fmt);
|
||||
free(entry);
|
||||
}
|
||||
|
||||
|
@ -355,6 +355,7 @@ win_save_vprint(ProfWin *window, const char show_char, GTimeVal *tstamp,
|
||||
GString *fmt_msg = g_string_new(NULL);
|
||||
g_string_vprintf(fmt_msg, message, arg);
|
||||
win_save_print(window, show_char, tstamp, flags, attrs, from, fmt_msg->str);
|
||||
g_string_free(fmt_msg, true);
|
||||
}
|
||||
|
||||
void
|
||||
|
Loading…
Reference in New Issue
Block a user