M!24 - kmail-libs.c:kuri_to_euri: use the return value of g_string_free()

Closes https://gitlab.gnome.org/GNOME/evolution/merge_requests/24
This commit is contained in:
Дилян Палаузов
2019-07-07 15:01:19 +00:00
committed by Milan Crha
parent 6dc66755af
commit 3a25399c46

View File

@ -118,7 +118,6 @@ kuri_to_euri (const gchar *k_uri)
gchar *p; gchar *p;
gchar **folders; gchar **folders;
GString *e_folder = NULL; GString *e_folder = NULL;
gchar *val;
gint i; gint i;
gboolean dropped = FALSE; gboolean dropped = FALSE;
@ -155,15 +154,8 @@ kuri_to_euri (const gchar *k_uri)
g_string_append_printf (e_folder, "/%s", folder); g_string_append_printf (e_folder, "/%s", folder);
} }
if (dropped) {
val = NULL;
g_string_free (e_folder, TRUE);
} else {
val = e_folder->str;
g_string_free (e_folder, FALSE);
}
g_strfreev (folders); g_strfreev (folders);
return val; return g_string_free (e_folder, dropped);
} }
static GSList * static GSList *