Commit 99ff5bb6 authored by Michael Catanzaro's avatar Michael Catanzaro

gnome-session-quit: Fix extra unref when power off is cancelled

GLib-CRITICAL **: g_variant_unref: assertion 'value != NULL' failed

The logout code already accounted for this, but it was missed for power
off.
parent 695dc292
......@@ -157,9 +157,9 @@ do_power_off (const char *action)
g_warning ("Failed to call %s: %s",
action, error->message);
g_error_free (error);
} else {
g_variant_unref (reply);
}
g_variant_unref (reply);
g_clear_object (&sm_proxy);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment