Prevent non-leak from showing up as a leak by scoping in a block. r=pinkerton@netscape.com
This commit is contained in:
Родитель
2a01a6ed63
Коммит
880eb46df6
|
@ -906,9 +906,12 @@ int main(int argc, char* argv[])
|
|||
// out of that proxy and properly onto the clipboard. This can't be done in the
|
||||
// clipboard service's shutdown routine because it requires the parser/etc which
|
||||
// has already been shutdown by the time the clipboard is shut down.
|
||||
{
|
||||
// scoping this in a block to force release
|
||||
NS_WITH_SERVICE(nsIClipboard, clipService, "component://netscape/widget/clipboard", &rv);
|
||||
if ( clipService )
|
||||
clipService->ForceDataToClipboard();
|
||||
}
|
||||
|
||||
rv = NS_ShutdownXPCOM( NULL );
|
||||
NS_ASSERTION(NS_SUCCEEDED(rv), "NS_ShutdownXPCOM failed");
|
||||
|
|
Загрузка…
Ссылка в новой задаче