mirror of
https://github.com/profanity-im/profanity.git
synced 2025-01-03 14:57:42 -05:00
Fix invalid read in titlebar
This commit is contained in:
parent
a2af4c3184
commit
090732ed96
@ -197,9 +197,10 @@ _title_bar_draw(void)
|
|||||||
char *title = win_get_title(current);
|
char *title = win_get_title(current);
|
||||||
|
|
||||||
mvwprintw(win, 0, 0, " %s", title);
|
mvwprintw(win, 0, 0, " %s", title);
|
||||||
free(title);
|
|
||||||
pos = strlen(title) + 1;
|
pos = strlen(title) + 1;
|
||||||
|
|
||||||
|
free(title);
|
||||||
|
|
||||||
// presence is written from the right side
|
// presence is written from the right side
|
||||||
// calculate it first so we have a maxposition
|
// calculate it first so we have a maxposition
|
||||||
maxrightpos = _show_self_presence();
|
maxrightpos = _show_self_presence();
|
||||||
|
Loading…
Reference in New Issue
Block a user