app: replace a g_free_error() by g_clear_error().

As a review fix of MR !470 since the contributor Andrzej Hunt is
unfortunately not responding.
This commit is contained in:
Jehan 2021-10-12 19:05:41 +02:00
parent 345d148e21
commit 7e3cab1475
1 changed files with 1 additions and 4 deletions

View File

@ -511,10 +511,7 @@ gimp_tag_cache_load (GimpTagCache *cache)
{
g_printerr ("Failed to parse tag cache: %s\n",
error ? error->message : "WTF unknown error");
if (error)
{
g_error_free (error);
}
g_clear_error (&error);
}
g_object_unref (file);