summaryrefslogtreecommitdiffstats
path: root/audio/device.c
diff options
context:
space:
mode:
authorLuiz Augusto von Dentz <luiz.dentz@indt.org.br>2008-07-30 17:57:50 -0300
committerLuiz Augusto von Dentz <luiz.dentz@indt.org.br>2008-07-30 17:57:50 -0300
commitd0c561820ca05cafc8a7d20e3250953b48aa5214 (patch)
treef653006e6617f4f89c9bc60d4451df323bf1a08c /audio/device.c
parent990b22de8763ca1b23a6c2911dcd3ca30592ac3f (diff)
Remove use of g_dbus_unregister_all_interfaces.
Diffstat (limited to 'audio/device.c')
-rw-r--r--audio/device.c18
1 files changed, 8 insertions, 10 deletions
diff --git a/audio/device.c b/audio/device.c
index 19ce3b41..b5ba61a2 100644
--- a/audio/device.c
+++ b/audio/device.c
@@ -56,15 +56,6 @@
static void device_free(struct audio_device *dev)
{
- if (dev->headset)
- headset_free(dev);
-
- if (dev->sink)
- sink_free(dev);
-
- if (dev->control)
- control_free(dev);
-
if (dev->conn)
dbus_connection_unref(dev->conn);
@@ -119,7 +110,14 @@ gboolean device_is_connected(struct audio_device *dev, const char *interface)
void device_unregister(struct audio_device *device)
{
- g_dbus_unregister_all_interfaces(device->conn, device->path);
+ if (device->headset)
+ headset_unregister(device);
+
+ if (device->sink)
+ sink_unregister(device);
+
+ if (device->control)
+ control_unregister(device);
device_free(device);
}