gtkui: Fix crash by using str_unref for pooled strings.