--- a/webengine/wmlengine/src/image/src/Epoc32SimpleImage.cpp Wed Apr 14 17:06:56 2010 +0300
+++ b/webengine/wmlengine/src/image/src/Epoc32SimpleImage.cpp Tue Apr 27 17:46:17 2010 +0300
@@ -771,7 +771,7 @@
{
// The new bitmap and mask have no dependancy on the old; just replace the old
// with the new.
- if(image->bitmap){
+ if(image->bitmap && bitmap){
TInt bitmapHandle = bitmap->Handle();
CFbsBitmap* pBitmap = (CFbsBitmap*)image->bitmap;
pBitmap->Duplicate(bitmapHandle);
@@ -780,7 +780,7 @@
image->bitmap = bitmap;
}
- if(image->mask){
+ if(image->mask && mask){
TInt bitmapHandle = mask->Handle();
CFbsBitmap* pBitmask = (CFbsBitmap*)image->mask;
pBitmask->Duplicate(bitmapHandle);