summaryrefslogtreecommitdiff
path: root/cpufreq/src
diff options
context:
space:
mode:
authorrbuj <[email protected]>2020-07-08 21:02:09 +0200
committerraveit65 <[email protected]>2020-07-17 11:43:12 +0200
commit46329dddf49af7a60e04d26c550c5919bbda9909 (patch)
tree21265004a9b04b45a56ae0c7cf638173842b7c34 /cpufreq/src
parentb8738dde7048b76f3d2a11e6371a67d5b0383080 (diff)
downloadmate-applets-46329dddf49af7a60e04d26c550c5919bbda9909.tar.bz2
mate-applets-46329dddf49af7a60e04d26c550c5919bbda9909.tar.xz
Remove warning about assigned value is never used reported by cppcheck
Diffstat (limited to 'cpufreq/src')
-rw-r--r--cpufreq/src/cpufreq-selector.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cpufreq/src/cpufreq-selector.c b/cpufreq/src/cpufreq-selector.c
index 4bdac4df..5d9d4915 100644
--- a/cpufreq/src/cpufreq-selector.c
+++ b/cpufreq/src/cpufreq-selector.c
@@ -44,9 +44,9 @@ G_DEFINE_TYPE (CPUFreqSelector, cpufreq_selector, G_TYPE_OBJECT)
static void
cpufreq_selector_finalize (GObject *object)
{
+#ifdef HAVE_POLKIT
CPUFreqSelector *selector = CPUFREQ_SELECTOR (object);
-#ifdef HAVE_POLKIT
g_clear_object (&selector->proxy);
g_clear_object (&selector->system_bus);
#endif /* HAVE_POLKIT */