mirror of
https://github.com/profanity-im/profanity.git
synced 2024-12-04 14:46:46 -05:00
Fixed memory deallocations
This commit is contained in:
parent
d7b331874a
commit
f887a35c0c
@ -154,7 +154,9 @@ cmd_execute_alias(ProfWin *window, const char *const inp, gboolean *ran)
|
||||
free(alias);
|
||||
if (value) {
|
||||
*ran = TRUE;
|
||||
return cmd_process_input(window, value);
|
||||
gboolean result = cmd_process_input(window, value);
|
||||
prefs_free_string(value);
|
||||
return result;
|
||||
}
|
||||
|
||||
*ran = FALSE;
|
||||
|
@ -759,6 +759,7 @@ _rosterwin_room(ProfLayoutSplit *layout, ProfMucWin *mucwin)
|
||||
} else {
|
||||
g_string_append(msg, mucwin->roomjid);
|
||||
}
|
||||
prefs_free_string(roombypref);
|
||||
if ((g_strcmp0(unreadpos, "after") == 0) && mucwin->unread > 0) {
|
||||
g_string_append_printf(msg, " (%d)", mucwin->unread);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user