Skip to content

Commit

Permalink
Merge pull request #2634 from madpilot78/FreeBSD_crash_on_close_fix
Browse files Browse the repository at this point in the history
Disconnect signal handler from vte before destroying the widget.
  • Loading branch information
b4n committed Oct 24, 2020
2 parents 0ac835c + ab4378a commit 35d27a4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/vte.c
Expand Up @@ -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);
Expand Down

0 comments on commit 35d27a4

Please sign in to comment.