remove timeouts on destroy so they don't try to write to freed data

svn path=/trunk/; revision=6032
This commit is contained in:
Dan Winship
2000-10-19 16:41:07 +00:00
parent f0a66281c6
commit 79d19f353c
2 changed files with 13 additions and 0 deletions

View File

@ -55,6 +55,9 @@ etsv_destroy (GtkObject *object)
if (etsv->sort_idle_id) {
g_source_remove(etsv->sort_idle_id);
}
if (etsv->insert_idle_id) {
g_source_remove(etsv->insert_idle_id);
}
etsv->table_model_changed_id = 0;
etsv->table_model_row_changed_id = 0;

View File

@ -433,6 +433,16 @@ e_text_destroy (GtkObject *object)
text->tooltip_timeout = 0;
}
if ( text->dbl_timeout ) {
gtk_timeout_remove (text->dbl_timeout);
text->dbl_timeout = 0;
}
if ( text->tpl_timeout ) {
gtk_timeout_remove (text->tpl_timeout);
text->tpl_timeout = 0;
}
if (GTK_OBJECT_CLASS (parent_class)->destroy)
(* GTK_OBJECT_CLASS (parent_class)->destroy) (object);
}