Circular dependency between Bus and Executor

Bug #1501864 reported by Kyle Fazzari on 2015-10-01
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
dbus-cpp
High
Thomas Voß

Bug Description

While testing dbus-cpp I noticed the refcount on my shared_ptr<Bus> was higher than expected when I was done with it (i.e. after I was done with it and stopped it the refcount was 2 instead of 1). After some quick investigation I noticed that the Executor holds a shared_ptr to its Bus, and Bus has a shared_ptr to its Executor, which means neither ever seems to be freed.

Related branches

Changed in dbus-cpp:
importance: Undecided → High
status: New → In Progress
assignee: nobody → Thomas Voß (thomas-voss)
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers