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
This commit is contained in:
Nick Treleaven 2006-11-13 16:47:26 +00:00
parent 0c233f9b3b
commit e512e663c5
2 changed files with 8 additions and 1 deletions

View File

@ -1,6 +1,7 @@
2006-11-13 Nick Treleaven <nick.treleaven@btinternet.com>
* 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 <nick.treleaven@btinternet.com>

View File

@ -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;