Fix for
26583,2946, 22636 (partial),32782 33570,27136,24184,35125, 35806,36063,29456 r=rickg,waqar 34311 - Patch provided by Patrick ( Fix for MLK ). r=me. git-svn-id: svn://10.0.0.236/trunk@66741 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -1180,7 +1180,7 @@ void CObserverService::RegisterObservers(const nsString& aTopic) {
|
||||
nsServiceManager::ReleaseService(NS_OBSERVERSERVICE_PROGID, theObserverService);
|
||||
|
||||
if(result == NS_OK) {
|
||||
nsIElementObserver *theElementObserver = nsnull;
|
||||
nsCOMPtr<nsIElementObserver> theElementObserver;
|
||||
nsISupports *inst = nsnull;
|
||||
|
||||
nsObserverTopic *theTopic=0;
|
||||
@@ -1188,7 +1188,7 @@ void CObserverService::RegisterObservers(const nsString& aTopic) {
|
||||
for (theEnum->First(); theEnum->IsDone() != NS_OK; theEnum->Next()) {
|
||||
result = theEnum->CurrentItem(&inst);
|
||||
if (NS_SUCCEEDED(result)) {
|
||||
result = inst->QueryInterface(NS_GET_IID(nsIElementObserver), (void**)&theElementObserver);
|
||||
theElementObserver = do_QueryInterface(inst, &result);
|
||||
NS_RELEASE(inst);
|
||||
}
|
||||
if (result == NS_OK) {
|
||||
|
||||
Reference in New Issue
Block a user