summaryrefslogtreecommitdiff
path: root/cpufreq/src
diff options
context:
space:
mode:
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 */