summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsamr7 <samr7@126591fb-c623-4b62-a76d-97a8e4f34109>2010-04-21 02:33:46 +0000
committersamr7 <samr7@126591fb-c623-4b62-a76d-97a8e4f34109>2010-04-21 02:33:46 +0000
commit11af07e68c39efa79006c7c8ba293e3c9eb43b69 (patch)
tree47c752f511e569da169c6edf1189c335e6f7e0b3
parent5fabd295d938dabdbf8bdf1befafa0c42d10802b (diff)
downloadnohands-master.tar.gz
Fix a minor dbus message leak.HEADmaster
git-svn-id: http://nohands.svn.sourceforge.net/svnroot/nohands/trunk@88 126591fb-c623-4b62-a76d-97a8e4f34109
-rw-r--r--hfpd/dbus.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/hfpd/dbus.cpp b/hfpd/dbus.cpp
index 34dc8db..a5e515e 100644
--- a/hfpd/dbus.cpp
+++ b/hfpd/dbus.cpp
@@ -1757,7 +1757,8 @@ DbusPropertyGet(DBusMessage *srcp)
}
if (!propp->prop_get) {
- return SendReplyError(msgp,
+ dbus_message_unref(msgp);
+ return SendReplyError(srcp,
DBUS_ERROR_INVALID_ARGS,
"Property cannot be read");
}