trying to fix a (spurious) memory leak report
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_2_BRANCH@7339 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -63,7 +63,7 @@ bool IsIidFromList(REFIID riid, const IID *aIids[], size_t nCount)
|
|||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
|
|
||||||
#if defined(__WXDEBUG__) && defined(__VISUALC__) && (__VISUALC__ > 1000)
|
#if defined(__WXDEBUG__) && defined(__VISUALC__) && (__VISUALC__ > 1000)
|
||||||
const wxChar *GetIidName(REFIID riid)
|
static wxString GetIidName(REFIID riid)
|
||||||
{
|
{
|
||||||
// an association between symbolic name and numeric value of an IID
|
// an association between symbolic name and numeric value of an IID
|
||||||
struct KNOWN_IID {
|
struct KNOWN_IID {
|
||||||
@@ -166,14 +166,14 @@ const wxChar *GetIidName(REFIID riid)
|
|||||||
}
|
}
|
||||||
|
|
||||||
// unknown IID, just transform to string
|
// unknown IID, just transform to string
|
||||||
static Uuid s_uuid;
|
Uuid uuid(riid);
|
||||||
s_uuid.Set(riid);
|
return wxString((const wxChar *)uuid);
|
||||||
return s_uuid;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void wxLogQueryInterface(const wxChar *szInterface, REFIID riid)
|
void wxLogQueryInterface(const wxChar *szInterface, REFIID riid)
|
||||||
{
|
{
|
||||||
wxLogTrace(wxT("%s::QueryInterface (iid = %s)"), szInterface, GetIidName(riid));
|
wxLogTrace(wxT("%s::QueryInterface (iid = %s)"),
|
||||||
|
szInterface, GetIidName(riid).c_str());
|
||||||
}
|
}
|
||||||
|
|
||||||
void wxLogAddRef(const wxChar *szInterface, ULONG cRef)
|
void wxLogAddRef(const wxChar *szInterface, ULONG cRef)
|
||||||
|
Reference in New Issue
Block a user