mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-30 15:31:34 +00:00
Fix a memory leak with file chooser previews
This commit is contained in:
parent
d93934ba6c
commit
e7d4d77093
@ -9611,6 +9611,13 @@ check_preview_change (GtkFileChooserDefault *impl)
|
||||
|
||||
g_signal_emit_by_name (impl, "update-preview");
|
||||
}
|
||||
else
|
||||
{
|
||||
if (new_file)
|
||||
g_object_unref (new_file);
|
||||
|
||||
g_free (new_display_name);
|
||||
}
|
||||
}
|
||||
|
||||
static void
|
||||
|
Loading…
Reference in New Issue
Block a user