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]
This commit is contained in:
Jehan 2025-06-12 13:31:27 +02:00
parent 80fe32dfc6
commit e98fc3dbf6

View file

@ -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);