From 43d29f86711890a813c871b2199d6d0f87430cd3 Mon Sep 17 00:00:00 2001 From: Francois Andriot Date: Sun, 12 May 2013 16:54:01 +0200 Subject: [PATCH] Fix halbackend causes KDED stop on assertion failed (cherry picked from commit 52aae1d1ef4a789745c6237e208c16a1bbb32762) --- kioslave/media/mediamanager/halbackend.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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());