[glib: 1/5] gpowerprofilemonitordbus: Fix a memory leak
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib: 1/5] gpowerprofilemonitordbus: Fix a memory leak
- Date: Tue, 7 Sep 2021 10:16:41 +0000 (UTC)
commit 28ad07373a3d561b98058a2e3b61bfa0efd7e58f
Author: Philip Withnall <pwithnall endlessos org>
Date: Mon Sep 6 18:54:06 2021 +0100
gpowerprofilemonitordbus: Fix a memory leak
get_cached_property() returns a new reference.
Signed-off-by: Philip Withnall <pwithnall endlessos org>
gio/gpowerprofilemonitordbus.c | 1 +
1 file changed, 1 insertion(+)
---
diff --git a/gio/gpowerprofilemonitordbus.c b/gio/gpowerprofilemonitordbus.c
index 8bbfe3acc..2bf7212b8 100644
--- a/gio/gpowerprofilemonitordbus.c
+++ b/gio/gpowerprofilemonitordbus.c
@@ -126,6 +126,7 @@ ppd_proxy_cb (GObject *source_object,
g_object_notify (G_OBJECT (dbus), "power-saver-enabled");
}
}
+ g_clear_pointer (&active_profile_variant, g_variant_unref);
dbus->signal_id = g_signal_connect (G_OBJECT (proxy), "g-properties-changed",
G_CALLBACK (ppd_properties_changed_cb), dbus);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]