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:
parent
0c233f9b3b
commit
e512e663c5
@ -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>
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user