diff options
Diffstat (limited to 'webkit/glue/plugins/pepper_device_context_2d.cc')
-rw-r--r-- | webkit/glue/plugins/pepper_device_context_2d.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/webkit/glue/plugins/pepper_device_context_2d.cc b/webkit/glue/plugins/pepper_device_context_2d.cc index 0ccba5c..964c605 100644 --- a/webkit/glue/plugins/pepper_device_context_2d.cc +++ b/webkit/glue/plugins/pepper_device_context_2d.cc @@ -75,10 +75,10 @@ const PPB_DeviceContext2D* DeviceContext2D::GetInterface() { } bool DeviceContext2D::Init(int width, int height) { - image_data_.reset(new ImageData(module())); + image_data_ = new ImageData(module()); if (!image_data_->Init(PP_IMAGEDATAFORMAT_BGRA_PREMUL, width, height) || !image_data_->Map()) { - image_data_.reset(); + image_data_ = NULL; return false; } |