Commit 6055f5ed authored by Sam Thursfield's avatar Sam Thursfield

Merge branch 'sam/test-warning-fixes' into 'master'

Avoid g_critical() errors when unable to connect to upower

Closes #75

See merge request GNOME/tracker-miners!81
parents acb65649 0d11b245
......@@ -170,10 +170,10 @@ tracker_power_finalize (GObject *object)
priv = GET_PRIV (object);
#ifndef HAVE_UP_CLIENT_GET_ON_LOW_BATTERY
g_object_unref (priv->composite_device);
g_clear_object (&priv->composite_device);
#endif /* HAVE_UP_CLIENT_GET_ON_LOW_BATTERY */
g_object_unref (priv->client);
g_clear_object (&priv->client);
(G_OBJECT_CLASS (tracker_power_parent_class)->finalize) (object);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment