Merge branch 'fix-urilauncher-uaf' into 'main'

urilauncher: Fix use-after-free on GCC < 12

See merge request GNOME/gtk!7471
This commit is contained in:
Benjamin Otte 2024-07-21 12:57:36 +00:00
commit ee5e3b5927

View File

@ -309,9 +309,11 @@ gtk_uri_launcher_launch (GtkUriLauncher *self,
gtk_openuri_portal_open_uri_async (self->uri, parent, cancellable, open_done, task);
else
#endif
{
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
gtk_show_uri_full (parent, self->uri, GDK_CURRENT_TIME, cancellable, show_uri_done, task);
gtk_show_uri_full (parent, self->uri, GDK_CURRENT_TIME, cancellable, show_uri_done, task);
G_GNUC_END_IGNORE_DEPRECATIONS
}
}
/**