From 52aae1d1ef4a789745c6237e208c16a1bbb32762 Mon Sep 17 00:00:00 2001 From: Francois Andriot Date: Sun, 12 May 2013 16:54:01 +0200 Subject: Fix halbackend causes KDED stop on assertion failed --- tdeioslave/media/mediamanager/halbackend.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'tdeioslave/media/mediamanager/halbackend.cpp') 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()); -- cgit v1.2.1