Index: webkit/glue/plugins/webplugin_delegate_impl_gtk.cc |
diff --git a/webkit/glue/plugins/webplugin_delegate_impl_gtk.cc b/webkit/glue/plugins/webplugin_delegate_impl_gtk.cc |
index 9f9838b8304e098b20560b041c07ca0495e0d7bb..87d868548b2dabef30d05db803f8e99a36ebd746 100644 |
--- a/webkit/glue/plugins/webplugin_delegate_impl_gtk.cc |
+++ b/webkit/glue/plugins/webplugin_delegate_impl_gtk.cc |
@@ -266,6 +266,9 @@ bool WebPluginDelegateImpl::WindowedCreatePlugin() { |
// Xembed plugins need a window created for them browser-side. |
// Do that now. |
windowed_handle_ = plugin_->CreatePluginContainer(); |
+ if (!windowed_handle_) |
+ return false; |
+ |
window_.window = reinterpret_cast<void*>(windowed_handle_); |
if (!window_.ws_info) |