[gimp/merge-requests/470: 5/5] app: replace a g_free_error() by g_clear_error().
- From: Jehan <jehanp src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/merge-requests/470: 5/5] app: replace a g_free_error() by g_clear_error().
- Date: Tue, 12 Oct 2021 17:07:34 +0000 (UTC)
commit f3e6905fb9180530f21acd288fd9d04f5ff87dad
Author: Jehan <jehan girinstud io>
Date: Tue Oct 12 19:05:41 2021 +0200
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.
app/core/gimptagcache.c | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
---
diff --git a/app/core/gimptagcache.c b/app/core/gimptagcache.c
index f7b840e722..349cd1c3f5 100644
--- a/app/core/gimptagcache.c
+++ b/app/core/gimptagcache.c
@@ -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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]