Re: [Ieleak-devel] [Ieleak-commit] SF.net SVN: ieleak: [146] trunk/drip/src/DOMReportDlg.cpp
Brought to you by:
matthiasmiller
From: Matthias M. <Blog@OutOfHanwell.com> - 2006-09-14 14:25:21
|
Johan, is this what you were thinking? Thanks. -Matthias Miller mat...@us... wrote: > Revision: 146 > http://svn.sourceforge.net/ieleak/?rev=146&view=rev > Author: matthiasmiller > Date: 2006-09-14 07:13:04 -0700 (Thu, 14 Sep 2006) > > Log Message: > ----------- > workaround to fix crashes on leakDocumentElementTest.htm > > Modified Paths: > -------------- > trunk/drip/src/DOMReportDlg.cpp > > Modified: trunk/drip/src/DOMReportDlg.cpp > =================================================================== > --- trunk/drip/src/DOMReportDlg.cpp 2006-09-14 12:51:06 UTC (rev 145) > +++ trunk/drip/src/DOMReportDlg.cpp 2006-09-14 14:13:04 UTC (rev 146) > @@ -147,6 +147,15 @@ > // > node->AddRef(); > m_leaks.push_back(LeakEntry(node, SysAllocString(url), refCount, isRecent)); > + > + // Retrieve a reference to the node's document. Sometimes the node's document is > + // freed but the node retains a pointer to the document, causing crashes when > + // retrieving certain properties. Accessing the document property forces a new, > + // empty document to be created for this node. > + // > + CComQIPtr<IDispatchEx> node_ptr(node); > + VARIANT document; > + (bool)getPropertyValue(node_ptr, L"document", document); > } > > // Clear all leaks. > > > This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. > > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > Ieleak-commit mailing list > Iel...@li... > https://lists.sourceforge.net/lists/listinfo/ieleak-commit > > > |