summaryrefslogtreecommitdiffstats
path: root/tdeioslave/media
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:54:01 +0200
commit52aae1d1ef4a789745c6237e208c16a1bbb32762 (patch)
tree57a2a1ebf5e1253ce4d22ca1eaa7713e7be6e785 /tdeioslave/media
parent134af52f38eba04b8608ab0410dae8111ea4e5b8 (diff)
downloadtdebase-52aae1d1ef4a789745c6237e208c16a1bbb32762.tar.gz
tdebase-52aae1d1ef4a789745c6237e208c16a1bbb32762.zip
Fix halbackend causes KDED stop on assertion failed
Diffstat (limited to 'tdeioslave/media')
-rw-r--r--tdeioslave/media/mediamanager/halbackend.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/tdeioslave/media/mediamanager/halbackend.cpp b/tdeioslave/media/mediamanager/halbackend.cpp
index 65807b102..a31b632c8 100644
--- a/tdeioslave/media/mediamanager/halbackend.cpp
+++ b/tdeioslave/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());