From e512e663c586362868d8a0f49d128945fc20cb00 Mon Sep 17 00:00:00 2001 From: Nick Treleaven Date: Mon, 13 Nov 2006 16:47:26 +0000 Subject: [PATCH] Fix invalid memory write in on_exit_clicked(). git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@990 ea778897-0a13-0410-b9d1-a72fbfd435f5 --- ChangeLog | 1 + src/callbacks.c | 8 +++++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index da1054de..3a181ccf 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,6 +1,7 @@ 2006-11-13 Nick Treleaven * src/sci_cb.c: Fix invalid memory read in sci_cb_get_indent(). + * src/callbacks.c: Fix invalid memory write in on_exit_clicked(). 2006-11-12 Nick Treleaven diff --git a/src/callbacks.c b/src/callbacks.c index f0b4e150..70e90437 100644 --- a/src/callbacks.c +++ b/src/callbacks.c @@ -149,13 +149,19 @@ on_exit_clicked (GtkWidget *widget, gpointer gdata) if (! check_no_unsaved()) { if (account_for_unsaved()) + { quit_app(); + return FALSE; + } } else if (! app->pref_main_confirm_exit || dialogs_show_question_full(GTK_STOCK_QUIT, GTK_STOCK_CANCEL, NULL, _("Do you really want to quit?"))) - quit_app(); + { + quit_app(); + return FALSE; + } app->quitting = FALSE; return TRUE;