From aca07cf90db49d1e072d731db65b6faceee10ef1 Mon Sep 17 00:00:00 2001 From: "morse%netscape.com" Date: Fri, 23 Apr 1999 17:22:35 +0000 Subject: [PATCH] release services the correct way --- extensions/wallet/src/htmldlgs.h | 2 +- extensions/wallet/src/wallet.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/extensions/wallet/src/htmldlgs.h b/extensions/wallet/src/htmldlgs.h index 6009b3cb61fe..50af001618bd 100644 --- a/extensions/wallet/src/htmldlgs.h +++ b/extensions/wallet/src/htmldlgs.h @@ -219,7 +219,7 @@ XP_MakeHTMLDialog2(XPDialogInfo *dialogInfo) { } delete[] cookies; } - NS_RELEASE(netservice); + nsServiceManager::ReleaseService(kNetServiceCID, netservice); } } diff --git a/extensions/wallet/src/wallet.cpp b/extensions/wallet/src/wallet.cpp index 2ee1a46ee672..c423d7620c4a 100644 --- a/extensions/wallet/src/wallet.cpp +++ b/extensions/wallet/src/wallet.cpp @@ -1728,7 +1728,7 @@ wallet_PostEdit() { if (!NS_FAILED(NS_NewURL(&url, walletEditor))) { res = netservice->GetCookieString(url, *nsCookie); } - NS_RELEASE(netservice); + nsServiceManager::ReleaseService(kNetServiceCID, netservice); /* convert cookie to a C string */ char *cookies = nsCookie->ToNewCString(); @@ -1832,7 +1832,7 @@ WLLT_PreEdit(nsIURL* url) { } res = netservice->SetCookieString(url, *cookie); delete cookie; - NS_RELEASE(netservice); + nsServiceManager::ReleaseService(kNetServiceCID, netservice); } }