about summary refs log tree commit diff stats
path: root/src/ui
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui')
-rw-r--r--src/ui/core.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/ui/core.c b/src/ui/core.c
index ea558e3f..2d16e46e 100644
--- a/src/ui/core.c
+++ b/src/ui/core.c
@@ -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);
-                wprintw(windows[win_index]->win, string);
+                if (string != NULL) {
+                    wprintw(windows[win_index]->win, string);
+                    g_free(string);
+                }
             }
 
             offset++;