mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-24 21:58:06 +00:00
Checking for null pointer. r=pavlov
This commit is contained in:
parent
945164901c
commit
20253a4208
@ -421,6 +421,10 @@ NS_IMETHODIMP nsRenderingContextGTK::SetClipRegion(const nsIRegion& aRegion,
|
||||
{
|
||||
GdkRegion *rgn;
|
||||
|
||||
if(!mClipRegion) {
|
||||
return NS_ERROR_FAILURE;
|
||||
}
|
||||
|
||||
switch(aCombine)
|
||||
{
|
||||
case nsClipCombine_kIntersect:
|
||||
|
Loading…
x
Reference in New Issue
Block a user