[geany/geany] ab4378: Disconnect signal handler from vte before destroying the widget.

Guido Falsi git-noreply at xxxxx
Sat Oct 24 08:39:37 UTC 2020


Branch:      refs/heads/master
Author:      Guido Falsi <mad at madpilot.net>
Committer:   Guido Falsi <mad at madpilot.net>
Date:        Sat, 24 Oct 2020 08:39:37 UTC
Commit:      ab4378aa3524f3e4923bcdc7d0b4e97feb73da57
             https://github.com/geany/geany/commit/ab4378aa3524f3e4923bcdc7d0b4e97feb73da57

Log Message:
-----------
Disconnect signal handler from vte before destroying the widget.

Patch sent to FreeBSD bugzilla by Hodong <hodong at nimfsoft.com>

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=250403

Could be a fix for issue #2457


Modified Paths:
--------------
    src/vte.c

Modified: src/vte.c
1 lines changed, 1 insertions(+), 0 deletions(-)
===================================================================
@@ -399,6 +399,7 @@ void vte_close(void)
 	g_free(vf);
 	/* free the vte widget before unloading vte module
 	 * this prevents a segfault on X close window if the message window is hidden */
+	g_signal_handlers_disconnect_by_func(vc->vte, G_CALLBACK(vte_start), NULL);
 	gtk_widget_destroy(vc->vte);
 	gtk_widget_destroy(vc->menu);
 	g_object_unref(vc->menu);



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


More information about the Commits mailing list