diff --git a/mozilla/xpcom/components/nsRepository.cpp b/mozilla/xpcom/components/nsRepository.cpp index e29a18375c5..7bffda2cb4f 100644 --- a/mozilla/xpcom/components/nsRepository.cpp +++ b/mozilla/xpcom/components/nsRepository.cpp @@ -761,7 +761,6 @@ nsresult nsRepository::RegisterFactory(const nsCID &aClass, else { PR_LOG(logmodule, PR_LOG_WARNING, ("\t\tdeleting old Factory Entry.")); - delete old; } } @@ -805,7 +804,6 @@ nsresult nsRepository::RegisterFactory(const nsCID &aClass, else { PR_LOG(logmodule, PR_LOG_WARNING,("\t\tdeleting registered Factory.")); - delete old; } } diff --git a/mozilla/xpcom/src/nsRepository.cpp b/mozilla/xpcom/src/nsRepository.cpp index e29a18375c5..7bffda2cb4f 100644 --- a/mozilla/xpcom/src/nsRepository.cpp +++ b/mozilla/xpcom/src/nsRepository.cpp @@ -761,7 +761,6 @@ nsresult nsRepository::RegisterFactory(const nsCID &aClass, else { PR_LOG(logmodule, PR_LOG_WARNING, ("\t\tdeleting old Factory Entry.")); - delete old; } } @@ -805,7 +804,6 @@ nsresult nsRepository::RegisterFactory(const nsCID &aClass, else { PR_LOG(logmodule, PR_LOG_WARNING,("\t\tdeleting registered Factory.")); - delete old; } }