Skip to content

Commit ab4378a

Browse files
committed
Disconnect signal handler from vte before destroying the widget.
Patch sent to FreeBSD bugzilla by Hodong <hodong@nimfsoft.com> https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=250403 Could be a fix for issue #2457
1 parent 50fd246 commit ab4378a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/vte.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -399,6 +399,7 @@ void vte_close(void)
399399
g_free(vf);
400400
/* free the vte widget before unloading vte module
401401
* this prevents a segfault on X close window if the message window is hidden */
402+
g_signal_handlers_disconnect_by_func(vc->vte, G_CALLBACK(vte_start), NULL);
402403
gtk_widget_destroy(vc->vte);
403404
gtk_widget_destroy(vc->menu);
404405
g_object_unref(vc->menu);

0 commit comments

Comments
 (0)