Commit f34ea2bd authored by Andrea Azzarone's avatar Andrea Azzarone 🚴
Browse files

power: Use g_signal_connect_object

Objects created using the object storage API are not disposed when the panel
that created them is disposed. In order to prevent segfaults we need to manually
disconnect signal handler connected to these objects or we can do it
automatically using g_signal_connect_object.

parent 6ce1a1dc
Pipeline #35156 passed with stages
in 4 minutes and 24 seconds
......@@ -1717,8 +1717,9 @@ iio_proxy_appeared_cb (GDBusConnection *connection,
g_signal_connect_swapped (G_OBJECT (self->iio_proxy), "g-properties-changed",
G_CALLBACK (als_enabled_state_changed), self);
g_signal_connect_object (G_OBJECT (self->iio_proxy), "g-properties-changed",
G_CALLBACK (als_enabled_state_changed), self,
als_enabled_state_changed (self);
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