mirror of
https://github.com/profanity-im/profanity.git
synced 2024-11-03 19:37:16 -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);
|
free(alias);
|
||||||
if (value) {
|
if (value) {
|
||||||
*ran = TRUE;
|
*ran = TRUE;
|
||||||
return cmd_process_input(window, value);
|
gboolean result = cmd_process_input(window, value);
|
||||||
|
prefs_free_string(value);
|
||||||
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
*ran = FALSE;
|
*ran = FALSE;
|
||||||
|
@ -759,6 +759,7 @@ _rosterwin_room(ProfLayoutSplit *layout, ProfMucWin *mucwin)
|
|||||||
} else {
|
} else {
|
||||||
g_string_append(msg, mucwin->roomjid);
|
g_string_append(msg, mucwin->roomjid);
|
||||||
}
|
}
|
||||||
|
prefs_free_string(roombypref);
|
||||||
if ((g_strcmp0(unreadpos, "after") == 0) && mucwin->unread > 0) {
|
if ((g_strcmp0(unreadpos, "after") == 0) && mucwin->unread > 0) {
|
||||||
g_string_append_printf(msg, " (%d)", mucwin->unread);
|
g_string_append_printf(msg, " (%d)", mucwin->unread);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user