universal-access: Free zoom options dialog right

Use gtk_widget_destroy() instead of g_clear_object().
Otherwise, it results in segfault on dispose()
This commit is contained in:
Mohammed Sadiq 2019-07-12 17:54:43 +05:30 committed by Robert Ancell
parent 90af5b87f9
commit 38897a751b

View file

@ -203,6 +203,7 @@ cc_ua_panel_dispose (GObject *object)
{
CcUaPanel *self = CC_UA_PANEL (object);
g_clear_pointer (&self->zoom_options, gtk_widget_destroy);
g_slist_free_full (self->toplevels, (GDestroyNotify)gtk_widget_destroy);
self->toplevels = NULL;
@ -215,8 +216,6 @@ cc_ua_panel_dispose (GObject *object)
g_clear_object (&self->application_settings);
g_clear_object (&self->gsd_mouse_settings);
g_clear_object (&self->zoom_options);
g_clear_pointer (&self->sections, g_list_free);
g_clear_pointer (&self->sections_reverse, g_list_free);