1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-11-03 19:37:16 -05:00

Fixed memory leak

This commit is contained in:
James Booth 2013-05-06 01:22:34 +01:00
parent cd06771ddf
commit d43539bf10

View File

@ -780,7 +780,10 @@ ui_duck_result(const char * const result)
win_print_time(windows[win_index], '-');
} else {
gchar *string = g_ucs4_to_utf8(&unichar, 1, NULL, NULL, NULL);
if (string != NULL) {
wprintw(windows[win_index]->win, string);
g_free(string);
}
}
offset++;