Added a refcount to the nsDeviceContext. sr=attinasi r=kmcclusk

git-svn-id: svn://10.0.0.236/trunk@86968 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
dcone%netscape.com
2001-02-14 02:57:07 +00:00
parent 04f4b5e3d0
commit 2e0a8e2b04

View File

@@ -677,6 +677,11 @@ NS_IMETHODIMP nsDeviceContextMac::GetDeviceContextFor(nsIDeviceContextSpec *aDev
nsDeviceContextMac *macDC;
aContext = new nsDeviceContextMac();
if(nsnull == aContext){
return NS_ERROR_OUT_OF_MEMORY;
}
NS_ADDREF(aContext);
macDC = (nsDeviceContextMac*)aContext;
macDC->mSpec = aDevice;
NS_ADDREF(aDevice);