From ddfdb75453b42383c09ff7ab2f1d710eda12d57c 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. git-svn-id: svn://10.0.0.236/trunk@100536 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/extensions/python/xpcom/src/PyIClassInfo.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/mozilla/extensions/python/xpcom/src/PyIClassInfo.cpp b/mozilla/extensions/python/xpcom/src/PyIClassInfo.cpp index 0d9603d57af..58be94ec982 100644 --- a/mozilla/extensions/python/xpcom/src/PyIClassInfo.cpp +++ b/mozilla/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;