Kaydet (Commit) 90dc5191 authored tarafından Nick Treleaven's avatar Nick Treleaven

Fix segfault on idle callback when quitting.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5254 ea778897-0a13-0410-b9d1-a72fbfd435f5
üst df6d46d3
......@@ -7,6 +7,8 @@
Change default Find Selection behaviour to not let the X selection
override the current word (can be confusing).
Add docs for Find Selection commands.
* src/document.c:
Fix segfault on idle callback when quitting.
2010-09-22 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com>
......
......@@ -610,7 +610,9 @@ gboolean document_close(GeanyDocument *doc)
static gboolean on_idle_new_doc(gpointer user_data)
{
document_new_file_if_non_open();
/* Idle may be after Geany has quit */
if (!main_status.quitting)
document_new_file_if_non_open();
return FALSE;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment