mirror of
https://github.com/profanity-im/profanity.git
synced 2024-12-04 14:46:46 -05:00
Fixed memory leak
This commit is contained in:
parent
cd06771ddf
commit
d43539bf10
@ -780,7 +780,10 @@ ui_duck_result(const char * const result)
|
|||||||
win_print_time(windows[win_index], '-');
|
win_print_time(windows[win_index], '-');
|
||||||
} else {
|
} else {
|
||||||
gchar *string = g_ucs4_to_utf8(&unichar, 1, NULL, NULL, NULL);
|
gchar *string = g_ucs4_to_utf8(&unichar, 1, NULL, NULL, NULL);
|
||||||
wprintw(windows[win_index]->win, string);
|
if (string != NULL) {
|
||||||
|
wprintw(windows[win_index]->win, string);
|
||||||
|
g_free(string);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
offset++;
|
offset++;
|
||||||
|
Loading…
Reference in New Issue
Block a user