st-widget: Use g_clear_pointer
https://bugzilla.gnome.org/show_bug.cgi?id=710541
This commit is contained in:
parent
0cfa7c1c56
commit
4d1358b7ed
@ -338,17 +338,8 @@ st_widget_dispose (GObject *gobject)
|
|||||||
StWidget *actor = ST_WIDGET (gobject);
|
StWidget *actor = ST_WIDGET (gobject);
|
||||||
StWidgetPrivate *priv = ST_WIDGET (actor)->priv;
|
StWidgetPrivate *priv = ST_WIDGET (actor)->priv;
|
||||||
|
|
||||||
if (priv->theme)
|
g_clear_pointer (&priv->theme, g_object_unref);
|
||||||
{
|
g_clear_pointer (&priv->theme_node, g_object_unref);
|
||||||
g_object_unref (priv->theme);
|
|
||||||
priv->theme = NULL;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (priv->theme_node)
|
|
||||||
{
|
|
||||||
g_object_unref (priv->theme_node);
|
|
||||||
priv->theme_node = NULL;
|
|
||||||
}
|
|
||||||
|
|
||||||
st_widget_remove_transition (actor);
|
st_widget_remove_transition (actor);
|
||||||
|
|
||||||
@ -358,11 +349,7 @@ st_widget_dispose (GObject *gobject)
|
|||||||
if (priv->accessible)
|
if (priv->accessible)
|
||||||
priv->accessible = NULL;
|
priv->accessible = NULL;
|
||||||
|
|
||||||
if (priv->label_actor)
|
g_clear_pointer (&priv->label_actor, g_object_unref);
|
||||||
{
|
|
||||||
g_object_unref (priv->label_actor);
|
|
||||||
priv->label_actor = NULL;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (priv->texture_file_changed_id != 0)
|
if (priv->texture_file_changed_id != 0)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user