зеркало из https://github.com/mozilla/pjs.git
Bug 103084 and Bug 103085: Memory leaks in LDAP code. r=mitesh, sr=bienvenu.
This commit is contained in:
Родитель
29794af480
Коммит
6ce9a720cd
|
@ -576,6 +576,9 @@ nsLDAPConnectionLoop::nsLDAPConnectionLoop()
|
|||
//
|
||||
nsLDAPConnectionLoop::~nsLDAPConnectionLoop()
|
||||
{
|
||||
// Delete the lock object
|
||||
if (mLock)
|
||||
PR_DestroyLock(mLock);
|
||||
}
|
||||
|
||||
NS_IMPL_THREADSAFE_ISUPPORTS1(nsLDAPConnectionLoop, nsIRunnable);
|
||||
|
|
|
@ -57,6 +57,8 @@ nsLDAPURL::nsLDAPURL()
|
|||
|
||||
nsLDAPURL::~nsLDAPURL()
|
||||
{
|
||||
// Delete the array of attributes
|
||||
delete mAttributes;
|
||||
}
|
||||
|
||||
nsresult
|
||||
|
|
Загрузка…
Ссылка в новой задаче