diff options
author | binji@chromium.org <binji@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-05-08 00:13:40 +0000 |
---|---|---|
committer | binji@chromium.org <binji@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-05-08 00:13:40 +0000 |
commit | dfb2db45969369e8e4796842d4b00cf54d16800e (patch) | |
tree | a2cfa5b7dd243a9d4a8349ff474bd337da19205f /native_client_sdk | |
parent | 1f4e8680768844179bf3a9781d3857d1c4f2b8de (diff) | |
download | chromium_src-dfb2db45969369e8e4796842d4b00cf54d16800e.zip chromium_src-dfb2db45969369e8e4796842d4b00cf54d16800e.tar.gz chromium_src-dfb2db45969369e8e4796842d4b00cf54d16800e.tar.bz2 |
[NaCl SDK] Fix crash in pi_generator example.
BUG=126319
TEST=none, unfortunately. :(
TBR=noelallen1@chromium.org
Review URL: https://chromiumcodereview.appspot.com/10375038
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@135765 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'native_client_sdk')
-rw-r--r-- | native_client_sdk/src/examples/pi_generator/pi_generator.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/native_client_sdk/src/examples/pi_generator/pi_generator.cc b/native_client_sdk/src/examples/pi_generator/pi_generator.cc index 66b3058..6e31158 100644 --- a/native_client_sdk/src/examples/pi_generator/pi_generator.cc +++ b/native_client_sdk/src/examples/pi_generator/pi_generator.cc @@ -98,7 +98,7 @@ PiGenerator::~PiGenerator() { void PiGenerator::DidChangeView(const pp::View& view) { pp::Rect position = view.GetRect(); - if (position.size() == pixel_buffer_->size()) + if (pixel_buffer_ && position.size() == pixel_buffer_->size()) return; // Size didn't change, no need to update anything. // Create a new device context with the new size. |