Index: Source/WebKit/chromium/src/GraphicsContext3DChromium.cpp |
=================================================================== |
--- Source/WebKit/chromium/src/GraphicsContext3DChromium.cpp (revision 88429) |
+++ Source/WebKit/chromium/src/GraphicsContext3DChromium.cpp (working copy) |
@@ -1174,7 +1174,7 @@ |
PassOwnPtr<GraphicsContextLostCallbackAdapter> GraphicsContextLostCallbackAdapter::create(PassOwnPtr<GraphicsContext3D::ContextLostCallback> cb) |
{ |
- return adoptPtr(new GraphicsContextLostCallbackAdapter(cb)); |
+ return adoptPtr(cb.get() ? new GraphicsContextLostCallbackAdapter(cb) : 0); |
} |
void GraphicsContext3DInternal::setContextLostCallback(PassOwnPtr<GraphicsContext3D::ContextLostCallback> cb) |