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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user