Skip to content

Commit

Permalink
cinnamon-settings-session.c: Don't unref a null GCancellable.
Browse files Browse the repository at this point in the history
It's only set during consolekit-managed sessions.
  • Loading branch information
mtwebster committed Nov 9, 2023
1 parent ae96c48 commit f5393cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cinnamon-settings-daemon/cinnamon-settings-session.c
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,7 @@ cinnamon_settings_session_finalize (GObject *object)

if (session->priv->proxy_session != NULL)
g_object_unref (session->priv->proxy_session);
g_object_unref (session->priv->cancellable);
g_clear_object (&session->priv->cancellable);

G_OBJECT_CLASS (cinnamon_settings_session_parent_class)->finalize (object);
}
Expand Down

0 comments on commit f5393cb

Please sign in to comment.