[geany/geany-plugins] cecaa3: Remove check while typing idle callback when unloading the plugin

Enrico Tröger git-noreply at xxxxx
Mon Jun 17 17:58:23 UTC 2013


Branch:      refs/heads/master
Author:      Enrico Tröger <enrico.troeger at uvena.de>
Committer:   Enrico Tröger <enrico.troeger at uvena.de>
Date:        Mon, 17 Jun 2013 17:58:23 UTC
Commit:      cecaa3ff1ce1fe7a3fdcd0af979c88c68520ef4c
             https://github.com/geany/geany-plugins/commit/cecaa3ff1ce1fe7a3fdcd0af979c88c68520ef4c

Log Message:
-----------
Remove check while typing idle callback when unloading the plugin

This could fix SF bug #96, I assume the callback ran while Geany was already
about to quit and so the crash.


Modified Paths:
--------------
    spellcheck/src/gui.c

Modified: spellcheck/src/gui.c
4 files changed, 4 insertions(+), 0 deletions(-)
===================================================================
@@ -651,4 +651,8 @@ void sc_gui_init(void)
 void sc_gui_free(void)
 {
 	g_free(clickinfo.word);
+	if (check_line_data.check_while_typing_idle_source_id != 0)
+	{
+		g_source_remove(check_line_data.check_while_typing_idle_source_id);
+	}
 }



--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).


More information about the Plugins-Commits mailing list