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

« back to all changes in this revision

Viewing changes to common/user-list.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:
186
186
void
187
187
common_user_list_cleanup (void)
188
188
{
189
 
    if (singleton)
190
 
        g_object_unref (singleton);
191
 
    singleton = NULL;
 
189
    g_clear_object (&singleton);
192
190
}
193
191
 
194
192
static CommonUser *