From e98fc3dbf65d56ce3fda846d5d96534607170cb3 Mon Sep 17 00:00:00 2001 From: Jehan Date: Thu, 12 Jun 2025 13:31:27 +0200 Subject: [PATCH] plug-ins: closing a NULL File. This is a code path where we already verified that the returned FILE was NULL. The compiler complained too: > plug-ins/common/file-tim.c:280:7: warning: argument 1 null where non-null expected [-Wnonnull] --- plug-ins/common/file-tim.c | 1 - 1 file changed, 1 deletion(-) diff --git a/plug-ins/common/file-tim.c b/plug-ins/common/file-tim.c index 7c7edfd99e..c23995eca3 100644 --- a/plug-ins/common/file-tim.c +++ b/plug-ins/common/file-tim.c @@ -277,7 +277,6 @@ tim_load (GimpProcedure *procedure, g_set_error (&error, G_FILE_ERROR, g_file_error_from_errno (errno), _("Could not open '%s' for reading: %s"), gimp_file_get_utf8_name (file), g_strerror (errno)); - fclose (fp); return gimp_procedure_new_return_values (procedure, GIMP_PDB_EXECUTION_ERROR, error);