about summary refs log tree commit diff stats
path: root/src/ui/chatwin.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/chatwin.c')
-rw-r--r--src/ui/chatwin.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/ui/chatwin.c b/src/ui/chatwin.c
index 399d0fe0..ff425c0f 100644
--- a/src/ui/chatwin.c
+++ b/src/ui/chatwin.c
@@ -514,10 +514,7 @@ chatwin_get_string(ProfChatWin* chatwin)
         g_string_append_printf(res, ", %d unread", chatwin->unread);
     }
 
-    char* resstr = res->str;
-    g_string_free(res, FALSE);
-
-    return resstr;
+    return g_string_free(res, FALSE);
 }
 
 void