Check if the framehandle is valid before accessing it
git-svn-id: svn://10.0.0.236/trunk@12762 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
15ccbf9305
commit
9c907875f7
@ -305,6 +305,8 @@ fe_DisplayPixmap(MWContext * context, IL_Pixmap * image, IL_Pixmap * mask, PRInt
|
||||
|
||||
if (context)
|
||||
frameHandle = (XFE_Frame *)ViewGlue_getFrame(context);
|
||||
if (!frameHandle)
|
||||
return;
|
||||
|
||||
/* Check the context type. If it is anything other than MWContextIcon
|
||||
* let it do the regular image processing. If it is MWContextIcon,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user