~ci-train-bot/lightdm/lightdm-ubuntu-zesty-1679

« back to all changes in this revision

Viewing changes to src/x-server.c

  • Committer: Robert Ancell
  • Date: 2015-10-16 10:20:03 UTC
  • Revision ID: robert.ancell@canonical.com-20151016102003-a5mt4x3hsln874w8
Use g_object_clear where we can for readibility

Show diffs side-by-side

added added

removed removed

Lines of Context:
90
90
{
91
91
    g_return_if_fail (server != NULL);
92
92
 
93
 
    if (server->priv->authority)
94
 
        g_object_unref (server->priv->authority);
 
93
    g_clear_object (&server->priv->authority);
95
94
    if (authority)
96
95
        server->priv->authority = g_object_ref (authority);
97
 
    else
98
 
        server->priv->authority = NULL;
99
96
}
100
97
 
101
98
XAuthority *