mirror of
https://gitlab.gnome.org/GNOME/gimp.git
synced 2025-07-04 01:43:24 +00:00
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:
parent
58a0c1d31e
commit
073a7a208f
1 changed files with 2 additions and 1 deletions
|
@ -164,7 +164,8 @@ 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);
|
||||||
g_object_unref (filter);
|
if (filter != NULL)
|
||||||
|
g_object_unref (filter);
|
||||||
}
|
}
|
||||||
|
|
||||||
for (list2 = proc->extensions_list;
|
for (list2 = proc->extensions_list;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue