[gimp] gimptextstyleeditor: Fix crash on exit
- From: Jehan <jehanp src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] gimptextstyleeditor: Fix crash on exit
- Date: Wed, 22 Dec 2021 13:46:46 +0000 (UTC)
commit e41250394dc619f907306d5087e07b4fa0175963
Author: Lukas Oberhuber <lukaso gmail com>
Date: Wed Dec 22 12:58:32 2021 +0000
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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]