[gimp] quit-dialog: stops crashing on quit dialog
- From: Jehan <jehanp src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] quit-dialog: stops crashing on quit dialog
- Date: Wed, 6 Jul 2022 13:29:45 +0000 (UTC)
commit 83397cbb159376e43f699f2f67b83c4e971a21c2
Author: Lukas Oberhuber <lukaso gmail com>
Date: Sat Jun 25 14:50:29 2022 +0100
quit-dialog: stops crashing on quit dialog
@jralls found uninitialized variables in the quit dialog that can cause
crashes.
app/dialogs/quit-dialog.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/app/dialogs/quit-dialog.c b/app/dialogs/quit-dialog.c
index 35680f740c..1e43807e71 100644
--- a/app/dialogs/quit-dialog.c
+++ b/app/dialogs/quit-dialog.c
@@ -302,6 +302,8 @@ quit_close_all_dialog_response (GtkWidget *dialog,
gboolean do_quit = private->do_quit;
gtk_widget_destroy (dialog);
+ private->box = NULL;
+ private->dialog = NULL;
if (response_id == GTK_RESPONSE_OK)
{
@@ -375,7 +377,7 @@ quit_close_all_dialog_container_changed (GimpContainer *images,
* actions provoking warnings. Let's just close as soon as
* possible with an idle source.
* Also the idle source has another benefit: allowing to change
- * one's mind and not exist after the last save, for instance by
+ * one's mind and not exit after the last save, for instance by
* hitting Esc quickly while the last save is in progress.
*/
g_idle_add ((GSourceFunc) quit_close_all_idle, private);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]