From e41250394dc619f907306d5087e07b4fa0175963 Mon Sep 17 00:00:00 2001 From: Lukas Oberhuber Date: Wed, 22 Dec 2021 12:58:32 +0000 Subject: [PATCH] gimptextstyleeditor: Fix crash on exit Messages were being sent to editor after editor had been destroyed. This stops that. --- app/widgets/gimptextstyleeditor.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/app/widgets/gimptextstyleeditor.c b/app/widgets/gimptextstyleeditor.c index 13e8462496..7f0a542305 100644 --- a/app/widgets/gimptextstyleeditor.c +++ b/app/widgets/gimptextstyleeditor.c @@ -391,6 +391,13 @@ gimp_text_style_editor_dispose (GObject *object) editor); } + if (editor->context) + { + g_signal_handlers_disconnect_by_func (editor->context, + gimp_text_style_editor_font_changed, + editor); + } + if (editor->update_idle_id) { g_source_remove (editor->update_idle_id);