aboutsummaryrefslogtreecommitdiff
path: root/xorg-server/config/dbus.c
diff options
context:
space:
mode:
Diffstat (limited to 'xorg-server/config/dbus.c')
-rw-r--r--xorg-server/config/dbus.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xorg-server/config/dbus.c b/xorg-server/config/dbus.c
index cef8ed5db..37462ace0 100644
--- a/xorg-server/config/dbus.c
+++ b/xorg-server/config/dbus.c
@@ -175,7 +175,7 @@ add_device(DBusMessage *message, DBusMessage *reply, DBusError *error)
unwind:
if (ret != Success) {
if (dev)
- RemoveDevice(dev);
+ RemoveDevice(dev, TRUE);
err = -ret;
dbus_message_iter_append_basic(&reply_iter, DBUS_TYPE_INT32, &err);