From 8b03e9362e5c6c2744f186e5f06bc56210d64b24 Mon Sep 17 00:00:00 2001 From: "markh%activestate.com" Date: Tue, 7 Aug 2001 22:55:22 +0000 Subject: [PATCH] *sigh* - regress previous checkin, as the change that caused it appears to also have been regressed. Not part of the build. --- extensions/python/xpcom/src/PyIClassInfo.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/extensions/python/xpcom/src/PyIClassInfo.cpp b/extensions/python/xpcom/src/PyIClassInfo.cpp index 0d9603d57af1..58be94ec9821 100644 --- a/extensions/python/xpcom/src/PyIClassInfo.cpp +++ b/extensions/python/xpcom/src/PyIClassInfo.cpp @@ -121,12 +121,13 @@ Py_nsIClassInfo::getattr(const char *name) ret = MakeStringOrNone(str_ret); nsAllocator::Free(str_ret); } else if (strcmp(name, "classID")==0) { - nsIID iid; + nsIID *iid; Py_BEGIN_ALLOW_THREADS; nr = pI->GetClassID(&iid); Py_END_ALLOW_THREADS; GETATTR_CHECK_RESULT(nr); - ret = Py_nsIID::PyObjectFromIID(iid); + ret = Py_nsIID::PyObjectFromIID(*iid); + nsAllocator::Free(iid); } else if (strcmp(name, "implementationLanguage")==0) { PRUint32 i; Py_BEGIN_ALLOW_THREADS;