зеркало из https://github.com/mozilla/pjs.git
Put in an AddRef for the newly created DeviceContext for printing. r=kmcclusk sr=attinasi
This commit is contained in:
Родитель
34cf943a88
Коммит
216126f18c
|
@ -805,6 +805,11 @@ NS_IMETHODIMP nsDeviceContextWin :: GetDeviceContextFor(nsIDeviceContextSpec *aD
|
|||
//then QI for the real object rather than casting... MMP
|
||||
|
||||
aContext = new nsDeviceContextWin();
|
||||
if(nsnull != aContext){
|
||||
NS_ADDREF(aContext);
|
||||
} else {
|
||||
return NS_ERROR_OUT_OF_MEMORY;
|
||||
}
|
||||
|
||||
((nsDeviceContextWin *)aContext)->mSpec = aDevice;
|
||||
NS_ADDREF(aDevice);
|
||||
|
|
Загрузка…
Ссылка в новой задаче