session: Fix error case handling
authorDaniel Wagner <daniel.wagner@bmw-carit.de>
Wed, 5 Dec 2012 13:57:46 +0000 (14:57 +0100)
committerPatrik Flykt <patrik.flykt@linux.intel.com>
Wed, 5 Dec 2012 14:50:37 +0000 (16:50 +0200)
commit68851e84a6f2a636bc9f8d0d123e72f59bed8bfe
treea7b7890ad55b74530b8cf0fed8fc889f4dd517ea
parenta4ae4deec646cd18092a43400392a83704227620
session: Fix error case handling

There is no need to unref the pending message, because in all
cases we generate a reply message which takes care of unrefing
the message. Hence the dbus_message_unref() is not needed.

Furthermore, we need to pass the created error message to the bus
via g_dbus_send_message() so that the client gets always a response.
src/session.c