diff options
author | Charles Kerr <charles.kerr@canonical.com> | 2016-11-04 11:00:24 -0500 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2021-08-29 14:38:27 +0200 |
commit | 192f5450b2725c259d471eaab0e066ec78932f57 (patch) | |
tree | c847ec3ced616814661cebb5ec464f474b0ea480 /src | |
parent | 18ca4edc212f20c55d5859065dfc0579b3bfd8a0 (diff) | |
download | ayatana-indicator-datetime-192f5450b2725c259d471eaab0e066ec78932f57.tar.gz ayatana-indicator-datetime-192f5450b2725c259d471eaab0e066ec78932f57.tar.bz2 ayatana-indicator-datetime-192f5450b2725c259d471eaab0e066ec78932f57.zip |
remove unnecessary test in Awake::Impl::~Impl()
Diffstat (limited to 'src')
-rw-r--r-- | src/awake.cpp | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/src/awake.cpp b/src/awake.cpp index 3bcd8ed..9ee337e 100644 --- a/src/awake.cpp +++ b/src/awake.cpp @@ -62,12 +62,8 @@ public: { g_cancellable_cancel (m_cancellable); g_object_unref (m_cancellable); - - if (m_system_bus != nullptr) - { - unforce_awake (); - g_object_unref (m_system_bus); - } + unforce_awake (); + g_clear_object (&m_system_bus); } private: @@ -99,7 +95,6 @@ private: g_clear_pointer (&self->m_awake_cookie, g_free); g_variant_get (args, "(s)", &self->m_awake_cookie); - g_debug ("m_awake_cookie is now '%s'", self->m_awake_cookie); g_variant_unref (args); } @@ -120,7 +115,7 @@ private: nullptr, G_DBUS_CALL_FLAGS_NONE, -1, - nullptr, + m_cancellable, nullptr, nullptr); |