Changes for qnx/photon platform only. They should not affect building/runtime other platforms.

Bug 240827
Fixed the fd( pipe ) leakeage related to event queues, due to improper handling in nsAppShell for our platform.

Also changes for nsFilePicker and nsSound due to changes to nsIFilePicker, nsISound.


git-svn-id: svn://10.0.0.236/trunk@155997 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
amardare%qnx.com
2004-05-05 15:39:49 +00:00
parent 8cce8c10dc
commit 4d0478ee3c
5 changed files with 7 additions and 115 deletions

View File

@@ -186,8 +186,7 @@ NS_METHOD nsAppShell::Spinup()
}
//Get the event queue for the thread.
//rv = eventQService->GetThreadEventQueue(NS_CURRENT_THREAD, getter_AddRefs(mEventQueue));
rv = eventQService->GetThreadEventQueue(NS_CURRENT_THREAD, &mEventQueue);
rv = eventQService->GetThreadEventQueue(NS_CURRENT_THREAD, getter_AddRefs(mEventQueue));
// If we got an event queue, use it.
if (mEventQueue)
@@ -201,8 +200,7 @@ NS_METHOD nsAppShell::Spinup()
}
// Ask again nicely for the event queue now that we have created one.
//rv = eventQService->GetThreadEventQueue(NS_CURRENT_THREAD, getter_AddRefs(mEventQueue));
rv = eventQService->GetThreadEventQueue(NS_CURRENT_THREAD, &mEventQueue);
rv = eventQService->GetThreadEventQueue(NS_CURRENT_THREAD, getter_AddRefs(mEventQueue));
// XXX shouldn't this be automatic?
done: