There's no need to unrealize the GtkATContext inside dispose() and then
drop its reference inside finalize().
g_object_remove_weak_pointer (G_OBJECT (page->last_focus),
(gpointer *)&page->last_focus);
- g_clear_object (&page->at_context);
-
G_OBJECT_CLASS (gtk_stack_page_parent_class)->finalize (object);
}
{
GtkStackPage *page = GTK_STACK_PAGE (object);
- if (page->at_context != NULL)
- gtk_at_context_unrealize (page->at_context);
+ g_clear_object (&page->at_context);
G_OBJECT_CLASS (gtk_stack_page_parent_class)->dispose (object);
}