From d42effce71204eeb2f985e284047118e8d9fd813 Mon Sep 17 00:00:00 2001 From: 3 Date: Tue, 23 Oct 2001 23:31:16 +0000 Subject: Remove the idle_id when we're destroyed so the idle func doesn't run on an 2001-10-23 * mail-display.c (mail_display_destroy): Remove the idle_id when we're destroyed so the idle func doesn't run on an invalid object. svn path=/trunk/; revision=13966 --- mail/ChangeLog | 3 +++ mail/mail-display.c | 3 +++ 2 files changed, 6 insertions(+) diff --git a/mail/ChangeLog b/mail/ChangeLog index 5969030766..dbc2fbfd9e 100644 --- a/mail/ChangeLog +++ b/mail/ChangeLog @@ -1,5 +1,8 @@ 2001-10-23 + * mail-display.c (mail_display_destroy): Remove the idle_id when + we're destroyed so the idle func doesn't run on an invalid object. + * message-list.c (regen_list_regened): Dont do anything if we're destroyed #13021. diff --git a/mail/mail-display.c b/mail/mail-display.c index 73c0c9a1ab..30cb0bc751 100644 --- a/mail/mail-display.c +++ b/mail/mail-display.c @@ -1492,6 +1492,9 @@ mail_display_destroy (GtkObject *object) g_datalist_clear (mail_display->data); g_free (mail_display->data); + if (mail_display->idle_id) + gtk_timeout_remove(mail_display->idle_id); + gtk_widget_unref (mail_display->invisible); mail_display_parent_class->destroy (object); -- cgit v1.2.3