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

« back to all changes in this revision

Viewing changes to src/x-server-xvnc.c

  • Committer: Robert Ancell
  • Date: 2015-10-16 10:04:18 UTC
  • Revision ID: robert.ancell@canonical.com-20151016100418-s3bxys1bsehl8ig7
Tidy up finalize methods

Show diffs side-by-side

added added

removed removed

Lines of Context:
291
291
static void
292
292
x_server_xvnc_finalize (GObject *object)
293
293
{
294
 
    XServerXVNC *self;
295
 
 
296
 
    self = X_SERVER_XVNC (object);
297
 
 
298
 
    if (self->priv->x_server_process)
299
 
        g_object_unref (self->priv->x_server_process);
 
294
    XServerXVNC *self = X_SERVER_XVNC (object);
 
295
 
 
296
    g_clear_object (&self->priv->x_server_process);
300
297
    g_free (self->priv->command);
301
298
    g_free (self->priv->authority_file);
302
299