diff options
author | Francois Andriot <francois.andriot@free.fr> | 2013-05-12 16:54:01 +0200 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2013-05-12 16:54:01 +0200 |
commit | 52aae1d1ef4a789745c6237e208c16a1bbb32762 (patch) | |
tree | 57a2a1ebf5e1253ce4d22ca1eaa7713e7be6e785 | |
parent | 134af52f38eba04b8608ab0410dae8111ea4e5b8 (diff) | |
download | tdebase-52aae1d1ef4a789745c6237e208c16a1bbb32762.tar.gz tdebase-52aae1d1ef4a789745c6237e208c16a1bbb32762.zip |
Fix halbackend causes KDED stop on assertion failed
-rw-r--r-- | tdeioslave/media/mediamanager/halbackend.cpp | 4 |
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()); |