app: Unref GtkFileFilter only when a file loader has extensions set

gimp_file_proc_view_process_procedure() can return NULL in case a file
loading procedure does not have any extensions set.
This commit is contained in:
Ondřej Míchal 2025-06-19 17:05:46 +03:00 committed by Alx Sa
parent 58a0c1d31e
commit 073a7a208f

View file

@ -164,6 +164,7 @@ gimp_file_proc_view_new (Gimp *gimp,
COLUMN_HELP_ID, help_id, COLUMN_HELP_ID, help_id,
COLUMN_FILTER, filter, COLUMN_FILTER, filter,
-1); -1);
if (filter != NULL)
g_object_unref (filter); g_object_unref (filter);
} }