From 07fcaa7be33d6b8a38b004d85f54bd2c989099bc Mon Sep 17 00:00:00 2001 From: John Hernandez <129467592+H3rnand3zzz@users.noreply.github.com> Date: Tue, 13 Jun 2023 22:05:45 +0200 Subject: [PATCH] Fix memory leak and cleanup --- src/ui/rosterwin.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ui/rosterwin.c b/src/ui/rosterwin.c index 5074c8f2..bf0ae0d0 100644 --- a/src/ui/rosterwin.c +++ b/src/ui/rosterwin.c @@ -895,7 +895,7 @@ _rosterwin_private_chats(ProfLayoutSplit* layout, GList* orphaned_privchats) { GList* privs = NULL; - char* privpref = prefs_get_string(PREF_ROSTER_PRIVATE); + auto_gchar gchar* privpref = prefs_get_string(PREF_ROSTER_PRIVATE); if (g_strcmp0(privpref, "group") == 0) { privs = wins_get_private_chats(NULL); } else {