Age | Commit message (Collapse) | Author | |
---|---|---|---|
2014-01-02 | bus: break reference cycle between bus and messages | Zbigniew Jędrzejewski-Szmek | |
Because messages in the read and write queues hold a reference on the bus, and the bus holds a reference on each of them, we would never free the bus if the read or write queues were not empty. Explicitly substract the number of messages in those queue from the bus reference count when deciding whether to free or not. A simple test which creates and unrefs simple objects is added. |