~thomas-voss/dbus-cpp/expose-session-and-system-bus-address-from-fixture

« back to all changes in this revision

Viewing changes to src/core/dbus/bus.cpp

  • Committer: CI Train Bot
  • Author(s): thomas-voss
  • Date: 2015-01-23 09:55:55 UTC
  • mfrom: (91.1.2 dbus-cpp)
  • Revision ID: ci-train-bot@canonical.com-20150123095555-3vie0gxp8ef3upi3
We ref on construction, so decrement the ref count by 1 to 1 prior to returning. Fixes: #1396985
Approved by: Antti Kaijanmäki, PS Jenkins bot

Show diffs side-by-side

added added

removed removed

Lines of Context:
278
278
    if (!result)
279
279
        throw std::runtime_error(se.print());
280
280
 
281
 
    return Message::from_raw_message(result);
 
281
    auto reply = Message::from_raw_message(result);
 
282
    dbus_message_unref(result);
 
283
    return reply;
282
284
}
283
285
 
284
286
PendingCall::Ptr Bus::send_with_reply_and_timeout(