[2.7.0-1, MSW, VS2005] wxMediaCtrl memory leak
Vadim Zeitlin
vadim at wxwindows.org
Sat Sep 9 09:40:40 PDT 2006
On Fri, 8 Sep 2006 09:03:58 -0700 Ryan Jaeger <rjaeger at quizam.com> wrote:
RJ> The changes in the mediactrl have created a memory leak. I've tracked it
RJ> down to msw/ole/activex.cpp:849.
RJ>
RJ> The new FrameSite object doesn't appear to ever get destroyed.
It's supposed to be destroyed when its reference count drops to 0 so the
real question is why it doesn't. AFAICS when the object is initially
created its count is 0 and it should be increased by each of
QueryInterface() calls on it. As the results are assigned to m_clientSite
and adviseSink both of which are wxAutoISomething, they should be released
correctly later. Again, I don't see why should it leak so how exactly did
you track it down to this line?
Thanks,
VZ
--
TT-Solutions: wxWidgets consultancy and technical support
http://www.tt-solutions.com/
More information about the wx-users
mailing list