Closed hkaraoguz closed 8 years ago
Please could you post the minimum necessary bit of code to recreate this?
I think I managed to solve it by code restructuring. It seems not directly related to MessageStoreProxy itself. The issue can be closed. Thanks!
When using MessageStoreProxy object as a singleton, memory leak is happening when a query is executed. The cause of the issue is probably the usage of
std::vector< std::pair<boost::shared_ptr<MsgType> >
during querying where reference count ofboost::shared_ptr
objects remains larger than 0 even if the returned results go out of scope.