diff options
Diffstat (limited to 'src/x-server.c')
-rw-r--r-- | src/x-server.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/x-server.c b/src/x-server.c index b82f3c6b..d0260bef 100644 --- a/src/x-server.c +++ b/src/x-server.c @@ -90,12 +90,9 @@ x_server_set_authority (XServer *server, XAuthority *authority) { g_return_if_fail (server != NULL); - if (server->priv->authority) - g_object_unref (server->priv->authority); + g_clear_object (&server->priv->authority); if (authority) server->priv->authority = g_object_ref (authority); - else - server->priv->authority = NULL; } XAuthority * |