Use g_clear_object in a few more places

This commit is contained in:
Matthias Clasen 2016-07-25 08:32:08 -04:00
parent bab906f838
commit 8db8891c66

View File

@ -12272,16 +12272,14 @@ gtk_widget_finalize (GObject *object)
g_free (priv->name);
if (priv->accessible)
g_object_unref (priv->accessible);
g_clear_object (&priv->accessible);
gtk_widget_clear_path (widget);
gtk_css_widget_node_widget_destroyed (GTK_CSS_WIDGET_NODE (priv->cssnode));
g_object_unref (priv->cssnode);
if (priv->context)
g_object_unref (priv->context);
g_clear_object (&priv->context);
_gtk_size_request_cache_free (&priv->requests);