summaryrefslogtreecommitdiffstats
path: root/kioslave
diff options
context:
space:
mode:
authorFrancois Andriot <francois.andriot@free.fr>2013-05-12 16:54:01 +0200
committerSlávek Banko <slavek.banko@axis.cz>2013-05-12 16:57:11 +0200
commit43d29f86711890a813c871b2199d6d0f87430cd3 (patch)
tree66eb6ee4ad03fbb8940ce34af93f9054b041e025 /kioslave
parent63d5f6882271eb8aa9b9b5744604cae1b38c3663 (diff)
downloadtdebase-43d29f86711890a813c871b2199d6d0f87430cd3.tar.gz
tdebase-43d29f86711890a813c871b2199d6d0f87430cd3.zip
Fix halbackend causes KDED stop on assertion failed
(cherry picked from commit 52aae1d1ef4a789745c6237e208c16a1bbb32762)
Diffstat (limited to 'kioslave')
-rw-r--r--kioslave/media/mediamanager/halbackend.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/kioslave/media/mediamanager/halbackend.cpp b/kioslave/media/mediamanager/halbackend.cpp
index 0aeb41003..623a3d4ed 100644
--- a/kioslave/media/mediamanager/halbackend.cpp
+++ b/kioslave/media/mediamanager/halbackend.cpp
@@ -1746,7 +1746,9 @@ TQString HALBackend::unmount(const TQString &_udi)
kdDebug() << "unmount queued for " << udi << endl;
dbus_message_unref (dmesg);
- dbus_message_unref (reply);
+ if (reply) {
+ dbus_message_unref (reply);
+ }
medium->setHalMounted(false);
ResetProperties(medium->id().latin1());