background: Use g_clear_* helpers when possible
https://bugzilla.gnome.org/show_bug.cgi?id=707602
This commit is contained in:
parent
531989217e
commit
00d8f80586
7 changed files with 18 additions and 65 deletions
|
@ -75,11 +75,7 @@ bg_source_dispose (GObject *object)
|
|||
{
|
||||
BgSourcePrivate *priv = BG_SOURCE (object)->priv;
|
||||
|
||||
if (priv->store)
|
||||
{
|
||||
g_object_unref (priv->store);
|
||||
priv->store = NULL;
|
||||
}
|
||||
g_clear_object (&priv->store);
|
||||
|
||||
G_OBJECT_CLASS (bg_source_parent_class)->dispose (object);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue