~mir-team/mir/development-branch

Viewing all changes in revision 2406.

  • Committer: Tarmac
  • Author(s): Alberto Aguirre
  • Date: 2015-03-18 23:43:43 UTC
  • mfrom: (2402.2.3 devel)
  • Revision ID: tarmac-20150318234343-yz7o0iwdnztz2n8r
Fix calling dead objects from some protobuf closure objects.

Since the closure/callback object may be invoked by a different thread in some instances (e.g. SessionMediator::exchange_buffer), the closure object now gets a weak_ptr to the ProtobufMessageProcessor (instead of a raw pointer). Fixes: https://bugs.launchpad.net/bugs/1433330.

Approved by PS Jenkins bot, Kevin DuBois, Alexandros Frantzis, Alan Griffiths.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: