background: Use g_clear_* helpers when possible

https://bugzilla.gnome.org/show_bug.cgi?id=707602
This commit is contained in:
Bastien Nocera 2013-09-05 21:55:46 -03:00 committed by Debarshi Ray
parent 531989217e
commit 00d8f80586
7 changed files with 18 additions and 65 deletions

View file

@ -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);
}