GNOME Bugzilla – Bug 709443
datetime: Critical warnings after recent memory management fixes
Last modified: 2013-10-07 10:53:37 UTC
After commit 545c8865434314739d86df6a656a2461e7d1b609, I am getting criticals when opening the datetime panel: Gtk-CRITICAL **: gtk_widget_hide: assertion 'GTK_IS_WIDGET (widget)' failed Gtk-CRITICAL **: gtk_widget_hide: assertion 'GTK_IS_WIDGET (widget)' failed ... and leaving: Gtk-CRITICAL **: gtk_builder_get_object: assertion 'GTK_IS_BUILDER (builder)' failed Gtk-CRITICAL **: gtk_widget_get_accessible: assertion 'GTK_IS_WIDGET (widget)' failed
Created attachment 256495 [details] [review] datetime: Store am_pm_stack in priv structure This is in preparation for the next patch.
Created attachment 256496 [details] [review] datetime: Disconnect from GtkStack signals before widget destruction This fixes a regression from commit 545c886 that caused criticals when leaving the datetime panel.
Created attachment 256497 [details] [review] Revert "datetime: Don't leak the dialogs" This caused criticals when on_permission_changed callback tried to access priv->datetime_dialog or priv->timezone_dialog before they had been set up. Another attempt at fixing the leak in the following patch. This reverts commit 545c8865434314739d86df6a656a2461e7d1b609.
Created attachment 256498 [details] [review] datetime: Explicitly destroy toplevel dialogs
Review of attachment 256495 [details] [review]: ok
Review of attachment 256496 [details] [review]: looks good
Review of attachment 256497 [details] [review]: ++
Review of attachment 256498 [details] [review]: Fine. Thanks and sorry for not having noticed these!
Thanks for the review! Attachment 256495 [details] pushed as 2234970 - datetime: Store am_pm_stack in priv structure Attachment 256496 [details] pushed as 7ae60ad - datetime: Disconnect from GtkStack signals before widget destruction Attachment 256497 [details] pushed as 47fb0c4 - Revert "datetime: Don't leak the dialogs" Attachment 256498 [details] pushed as 24faa84 - datetime: Explicitly destroy toplevel dialogs