Merge branch 'gtk-3-24' into 'gtk-3-24'

gtkmountoperation: avoid SEGV after bad password input

See merge request GNOME/gtk!6049
This commit is contained in:
Matthias Clasen
2023-06-02 14:57:10 +00:00

View File

@ -380,6 +380,11 @@ pw_dialog_got_response (GtkDialog *dialog,
else else
g_mount_operation_reply (op, G_MOUNT_OPERATION_ABORTED); g_mount_operation_reply (op, G_MOUNT_OPERATION_ABORTED);
if (priv->user_widgets)
{
g_list_free (priv->user_widgets);
priv->user_widgets = NULL;
}
priv->dialog = NULL; priv->dialog = NULL;
g_object_notify (G_OBJECT (op), "is-showing"); g_object_notify (G_OBJECT (op), "is-showing");
gtk_widget_destroy (GTK_WIDGET (dialog)); gtk_widget_destroy (GTK_WIDGET (dialog));