Commit f130c31c authored by Giovanni Panozzo's avatar Giovanni Panozzo

Fix glib warning

parent 7d765042
......@@ -524,9 +524,8 @@ void remmina_file_save(RemminaFile *remminafile)
} else {
g_warning("Remmina connection profile cannot be saved, with error %d (%s)", err->code, err->message);
}
g_error_free (err);
if (err != NULL)
g_error_free (err);
g_free(content);
g_key_file_free(gkeyfile);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment