mirror of https://github.com/GNOME/gimp.git
gimptextstyleeditor: Fix crash on exit
Messages were being sent to editor after editor had been destroyed. This stops that.
This commit is contained in:
parent
d8afa6c829
commit
e41250394d
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue