[chromium] Fix crash in DragImageTest caused by r122996
[WebKit-https.git] / Source / WebCore / platform / chromium / DragImageChromiumSkia.cpp
index c106c86012030c20ce916f327e08b689d813ac34..dd8ace385c248308fb6b301a42efa89e7364f325 100644 (file)
@@ -52,7 +52,8 @@ IntSize dragImageSize(DragImageRef image)
 
 void deleteDragImage(DragImageRef image)
 {
 
 void deleteDragImage(DragImageRef image)
 {
-    delete image->bitmap;
+    if (image)
+        delete image->bitmap;
     delete image;
 }
 
     delete image;
 }